Statistics
| Revision:

svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.library / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.buffer.api / src / main / java / org / gvsig / raster / lib / buffer / api / statistics / HistogramClass.java @ 43803

History | View | Annotate | Download (2.84 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 */
22
package org.gvsig.raster.lib.buffer.api.statistics;
23

    
24
/**
25
 * Clase que define un intervalo de datos. Es util para cosas como el calculo de
26
 * histogramas
27
 * con tipo de datos en coma flotante en el cual hay que dividir los intervalos
28
 * en
29
 * clases. Las clases se tendr?n en cuenta como un intervalo el cual el menor es
30
 * cerrado y el
31
 * mayor abierto, es decir
32
 * 
33
 * <PRE>
34
 * En las clases:
35
 * 0-1000
36
 * 1000-2000
37
 * los intervalos son
38
 * [0, 1000 [  de 0-999.9p
39
 * [1000, 2000[ de 1000-1999.9p
40
 * </PRE>
41
 *
42
 * @author Nacho Brodin (nachobrodin@gmail.com)
43
 *
44
 */
45
public interface HistogramClass extends Comparable<HistogramClass> {
46

    
47
    /**
48
     * Comprueba si el valor pasado por par?metro est? dentro del intervalo
49
     * 
50
     * @param value
51
     *            Valor a comprobar
52
     * @return true si est? dentro del intervalo y false si no lo est?
53
     */
54
    public boolean isIn(double value);
55

    
56
    /**
57
     * Obtiene el valor m?ximo de la clase
58
     * 
59
     * @return double que representa al valor m?ximo de la clase
60
     */
61
    public double getMax();
62

    
63
    /**
64
     * Asigna el valor m?ximo de la clase
65
     * 
66
     * @param max
67
     *            double que representa al valor m?ximo de la clase
68
     */
69
    public void setMax(double max);
70

    
71
    /**
72
     * Obtiene el valor m?nimo de la clase
73
     * 
74
     * @return double que representa al valor m?nimo de la clase
75
     */
76
    public double getMin();
77

    
78
    /**
79
     * ASigna el valor m?nimo de la clase
80
     * 
81
     * @param min
82
     *            double que representa al valor m?nimo de la clase
83
     */
84
    public void setMin(double min);
85

    
86
    /**
87
     * Obtiene el valor de la clase
88
     * 
89
     * @return long con el valor
90
     */
91
    public long getValue();
92

    
93
    /**
94
     * Asigna el valor de la clase
95
     * 
96
     * @param value
97
     *            con el valor
98
     */
99
    public void setValue(long value);
100

    
101
    /**
102
     * Incrementa en n el valor especificado
103
     * 
104
     * @param n
105
     */
106
    public void increment(long n);
107
}