Documentation of 'visad.FloatSet' Java class
FloatSet
visad

Class FloatSet

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Data, SetIface, SimpleSetIface, Thing


    public class FloatSet
    extends SimpleSet
    FloatSet represents the finite (but large) set of samples of R^dimension made by vectors of IEEE single precision floating point numbers. FloatSet objects are immutable.

    FloatSet cannot be used for the domain sampling of a Field.

    See Also:
    Serialized Form
    • Constructor Detail

      • FloatSet

        public FloatSet(MathType type,
                        CoordinateSystem coord_sys,
                        Unit[] units)
                 throws VisADException
        the set of values representable by N floats; type must be a RealType, a RealTupleType or a SetType; coordinate_system and units must be compatible with defaults for type, or may be null; a FloatSet may not be used as a Field domain
        Throws:
        VisADException
    • Method Detail

      • indexToValue

        public float[][] indexToValue(int[] index)
                               throws VisADException
        Description copied from class: Set
        return Set values corresponding to Set indices
        Specified by:
        indexToValue in interface SetIface
        Specified by:
        indexToValue in class Set
        Parameters:
        index - array of integer indices
        Returns:
        float[domain_dimension][indices.length] array of Set values
        Throws:
        VisADException - a VisAD error occurred
      • valueToIndex

        public int[] valueToIndex(float[][] value)
                           throws VisADException
        Description copied from class: Set
        return Set indices of Set values closest to value elements (return -1 for any value outside Set range)
        Specified by:
        valueToIndex in interface SetIface
        Specified by:
        valueToIndex in class Set
        Parameters:
        value - float[domain_dimension][number_of_values] array of Set values
        Returns:
        array of integer indices
        Throws:
        VisADException - a VisAD error occurred
      • valueToInterp

        public void valueToInterp(float[][] value,
                                  int[][] indices,
                                  float[][] weights)
                           throws VisADException
        Description copied from class: SimpleSet
        convert an array of values to arrays of indices and weights for those indices, appropriate for interpolation; the values array is organized as float[domain_dimension][number_of_values]; indices and weights must be passed in as int[number_of_values][] and float[number_of_values][]; on return, quantity( values[.][i] ) can be estimated as the sum over j of weights[i][j] * quantity (sample at indices[i][j]); no estimate possible if indices[i] and weights[i] are null
        Specified by:
        valueToInterp in interface SimpleSetIface
        Specified by:
        valueToInterp in class SimpleSet
        Parameters:
        value - An array of points. value[i][j] is the i-th coordinate of the j-th points.
        indices - Indices of the neighboring samples in the set. If the j-th points lies within the set, then returned element [i][j] is the index of the i-th neighboring sample in the set; otherwise, returned array [j] is null.
        weights - Weights for interpolating the neighboring samples in the set. If the j-th points lies within the set, then returned element [i][j] is the weight of the i-th neighboring sample in the set; otherwise, returned array [j] is null.
        Throws:
        VisADException - VisAD failure.
      • equals

        public boolean equals(java.lang.Object set)
        Description copied from class: Set
        test for equality
        Specified by:
        equals in interface SetIface
        Specified by:
        equals in class Set
      • isMissing

        public boolean isMissing()
        Returns:
        flag indicating whether this Data has a missing value
      • clone

        public final java.lang.Object clone()
        Clones this instance.
        Overrides:
        clone in class Set
        Returns:
        A clone of this instance.
      • cloneButType

        public java.lang.Object cloneButType(MathType type)
                                      throws VisADException
        Description copied from class: Set
        copy this Set, but give it a new MathType; this is safe, since constructor checks consistency of DomainCoordinateSystem and SetUnits with Type
        Specified by:
        cloneButType in interface SetIface
        Specified by:
        cloneButType in class Set
        Parameters:
        type - The MathType for the clone.
        Returns:
        A clone of this set with the new MathType.
        Throws:
        VisADException - VisAD failure.
      • longString

        public java.lang.String longString(java.lang.String pre)
                                    throws VisADException
        Specified by:
        longString in interface Data
        Overrides:
        longString in class Set
        Parameters:
        pre - String added to start of each line
        Returns:
        a longer String than returned by toString(), indented by pre (a string of blanks)
        Throws:
        VisADException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.