root / org.gvsig.toolbox / trunk / org.gvsig.toolbox / org.gvsig.toolbox.algorithm / src / main / java / es / unex / sextante / gridStatistics / neighborhoodDominance / NeighborhoodDominanceAlgorithm.java @ 59
History | View | Annotate | Download (639 Bytes)
1 |
package es.unex.sextante.gridStatistics.neighborhoodDominance; |
---|---|
2 |
|
3 |
import es.unex.sextante.core.Sextante; |
4 |
import es.unex.sextante.gridStatistics.neighborhood.patternBase.PatternBaseAlgorithm; |
5 |
|
6 |
public class NeighborhoodDominanceAlgorithm |
7 |
extends
|
8 |
PatternBaseAlgorithm { |
9 |
|
10 |
@Override
|
11 |
public void defineCharacteristics() { |
12 |
|
13 |
setName(Sextante.getText("Dominance"));
|
14 |
setGroup(Sextante.getText("Pattern_analysis"));
|
15 |
super.defineCharacteristics();
|
16 |
|
17 |
} |
18 |
|
19 |
|
20 |
@Override
|
21 |
protected double processValues() { |
22 |
|
23 |
return (Math.log(getNumberOfClasses()) - getDiversity()); |
24 |
|
25 |
} |
26 |
|
27 |
} |