Statistics
| Revision:

root / org.gvsig.toolbox / trunk / org.gvsig.toolbox / org.gvsig.toolbox.algorithm / src / main / java / es / unex / sextante / vegetationIndices / pviPerry / PVIPerryAlgorithm.java @ 59

History | View | Annotate | Download (604 Bytes)

1
package es.unex.sextante.vegetationIndices.pviPerry;
2

    
3
import es.unex.sextante.vegetationIndices.base.DistanceBasedAlgorithm;
4

    
5
public class PVIPerryAlgorithm
6
         extends
7
            DistanceBasedAlgorithm {
8

    
9

    
10
   @Override
11
   public void defineCharacteristics() {
12

    
13
      super.defineCharacteristics();
14

    
15
      setName("PVI(Perry and Lautenschlager)");
16

    
17
   }
18

    
19

    
20
   @Override
21
   protected double getIndex(final double dRed,
22
                             final double dNIR) {
23

    
24
      return ((m_dSlope * dNIR - dRed + m_dIntercept) / Math.sqrt(m_dSlope * m_dSlope + 1));
25

    
26
   }
27

    
28
}