Documentation of 'visad.DoubleSet' Java class
DoubleSet
visad

Class DoubleSet

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


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

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

    See Also:
    Serialized Form
    • Constructor Detail

      • DoubleSet

        public DoubleSet(MathType type)
                  throws VisADException
        construct a DoubleSet with null CoordinateSystem and Units
        Parameters:
        type - MathType for this DoubleSet, must be SetType, RealTupleType or RealType
        Throws:
        VisADException - a VisAD error occurred
      • DoubleSet

        public DoubleSet(MathType type,
                         CoordinateSystem coord_sys,
                         Unit[] units)
                  throws VisADException
        construct a DoubleSet with null CoordinateSystem and Units
        Parameters:
        type - MathType for this DoubleSet, must be SetType, RealTupleType or RealType
        coord_sys - CoordinateSystem for Set domain, must be compatible with default for type
        units - array of Units for Real values in Set domain, must be compatible with defaults for type
        Throws:
        VisADException - a VisAD error occurred
    • Method Detail

      • indexToValue

        public float[][] indexToValue(int[] index)
                               throws VisADException
        for DoubleSet, this always throws a SetException
        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 (but always throws SetException instead)
        Throws:
        VisADException - a VisAD error occurred
      • valueToIndex

        public int[] valueToIndex(float[][] value)
                           throws VisADException
        for DoubleSet, this always throws a SetException
        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 (but always throws SetException instead)
        Throws:
        VisADException - a VisAD error occurred
      • valueToInterp

        public void valueToInterp(float[][] value,
                                  int[][] indices,
                                  float[][] weights)
                           throws VisADException
        for DoubleSet, this always throws a SetException
        Specified by:
        valueToInterp in interface SimpleSetIface
        Specified by:
        valueToInterp in class SimpleSet
        Parameters:
        value - float[domain_dimension][number_of_values] array of Set values
        indices - int[number_of_values][] array for returning Set indices
        weights - float[number_of_values][] array for returning weights
        Throws:
        VisADException - a VisAD error occurred
      • getLength

        public int getLength()
                      throws VisADException
        for DoubleSet, this always throws a SetException
        Specified by:
        getLength in interface SetIface
        Overrides:
        getLength in class Set
        Returns:
        length of Set (but always throws SetException instead)
        Throws:
        VisADException - a VisAD error occurred
      • equals

        public boolean equals(java.lang.Object set)
        Indicates whether or not this instance is equal to an object
        Specified by:
        equals in interface SetIface
        Specified by:
        equals in class Set
        Parameters:
        set - the object in question.
        Returns:
        true if and only if this instance equals set.
      • isMissing

        public boolean isMissing()
        Returns:
        false (a DoubleSet is never missing)
      • 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
        Clones this instance with a different MathType.
        Specified by:
        cloneButType in interface SetIface
        Specified by:
        cloneButType in class Set
        Parameters:
        type - MathType for returned DoubleSet
        Returns:
        A clone of this instance.
        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.