Class FracIndex

java.lang.Object
org.esa.snap.core.util.math.FracIndex

public final class FracIndex extends Object
The class FracIndex is a simple representation of an index with an integral and a fractional component.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    The fractional component.
    int
    The integral component.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static FracIndex[]
    createArray(int length)
    Creates an array of type FracIndex[].
    final void
    Sets the fractional component to 0.0 if it is less than zero, and to 1.0 if it is greater than unity.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • i

      public int i
      The integral component.
    • f

      public double f
      The fractional component.
  • Constructor Details

    • FracIndex

      public FracIndex()
  • Method Details

    • createArray

      public static FracIndex[] createArray(int length)
      Creates an array of type FracIndex[].
      Parameters:
      length - the length of the array being created.
      Returns:
      the created array.
    • truncate

      public final void truncate()
      Sets the fractional component to 0.0 if it is less than zero, and to 1.0 if it is greater than unity.