gvsig-raster / org.gvsig.raster.cache / trunk / org.gvsig.raster.cache / org.gvsig.raster.cache.lib.api / src / main / java / org / gvsig / raster / cache / buffer / histogram / HistogramClass.java @ 995
History | View | Annotate | Download (2.56 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.cache.buffer.histogram; |
23 |
|
24 |
|
25 |
/**
|
26 |
* Clase que define un intervalo de datos. Es util para cosas como el calculo de histogramas
|
27 |
* con tipo de datos en coma flotante en el cual hay que dividir los intervalos en
|
28 |
* clases. Las clases se tendr?n en cuenta como un intervalo el cual el menor es cerrado y el
|
29 |
* mayor abierto, es decir
|
30 |
* <PRE>
|
31 |
* En las clases:
|
32 |
* 0-1000
|
33 |
* 1000-2000
|
34 |
* los intervalos son
|
35 |
* [0, 1000 [ de 0-999.9p
|
36 |
* [1000, 2000[ de 1000-1999.9p
|
37 |
* </PRE>
|
38 |
*
|
39 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
40 |
*
|
41 |
*/
|
42 |
public interface HistogramClass { |
43 |
|
44 |
/**
|
45 |
* Comprueba si el valor pasado por par?metro est? dentro del intervalo
|
46 |
* @param value Valor a comprobar
|
47 |
* @return true si est? dentro del intervalo y false si no lo est?
|
48 |
*/
|
49 |
public boolean isIn(double value); |
50 |
|
51 |
/**
|
52 |
* Obtiene el valor m?ximo de la clase
|
53 |
* @return Entero que representa al valor m?ximo de la clase
|
54 |
*/
|
55 |
public double getMax(); |
56 |
|
57 |
/**
|
58 |
* Asigna el valor m?ximo de la clase
|
59 |
* @param max Entero que representa al valor m?ximo de la clase
|
60 |
*/
|
61 |
public void setMax(double max); |
62 |
|
63 |
/**
|
64 |
* Obtiene el valor m?nimo de la clase
|
65 |
* @return Entero que representa al valor m?nimo de la clase
|
66 |
*/
|
67 |
public double getMin(); |
68 |
|
69 |
/**
|
70 |
* ASigna el valor m?nimo de la clase
|
71 |
* @param min Entero que representa al valor m?nimo de la clase
|
72 |
*/
|
73 |
public void setMin(double min); |
74 |
|
75 |
/**
|
76 |
* Obtiene el valor de la clase
|
77 |
* @return double con el valor
|
78 |
*/
|
79 |
public double getValue(); |
80 |
|
81 |
/**
|
82 |
* Asigna el valor de la clase
|
83 |
* @param double con el valor
|
84 |
*/
|
85 |
public void setValue(double value); |
86 |
|
87 |
/**
|
88 |
* Incrementa en n el valor especificado
|
89 |
* @param double n
|
90 |
*/
|
91 |
public void increment(double n); |
92 |
} |