Documentation of 'kcl.waterloo.graphics.data.GJPrimitiveDoubleDataVector' Java class
GJPrimitiveDoubleDataVector
kcl.waterloo.graphics.data

Class GJPrimitiveDoubleDataVector

    • Constructor Detail

      • GJPrimitiveDoubleDataVector

        public GJPrimitiveDoubleDataVector()
        Used for JUnit tests
    • Method Detail

      • setDataBufferData

        public final void setDataBufferData(double[] v)
        Sets the vector in the DataBuffer to the values in the input. Data may be cast and lose precision in the copy process. This method should fire a PropertyChangeEvent when the buffer data are changed
        Parameters:
        v - a double[] which will be deep copied to a new ArrayRealVector in the data buffer
      • getDataBufferData

        public final double[] getDataBufferData()
        Need this for de-serialization
        Returns:
        a double[]
      • setDataBufferData

        public final void setDataBufferData(int[] v)
        Sets the vector in the DataBuffer to the values in the input. Data may be cast and lose precision in the copy process. This method should fire a PropertyChangeEvent when the buffer data are changed
        Parameters:
        v - an int[] which will be cast to double[] and copied to a new PrimitiveDoubleBuffer in the data buffer
      • setDataBufferData

        public final void setDataBufferData(java.util.AbstractList<? extends java.lang.Number> v)
        Sets the vector in the DataBuffer to the values in the input. Data may be cast and lose precision in the copy process. This method should fire a PropertyChangeEvent when the buffer data are changed
        Parameters:
        v - a List whose data will be copied, cast to double and copied to a new PrimitiveDoubleBuffer in the data buffer
      • getDataValues

        public final double[] getDataValues(GJDataTransformInterface transform)
        Returns the data as an IEEE double precision array transformed by the class specified by getTranform
        Returns:
        a double[]
      • getRawDataValues

        public final double[] getRawDataValues()
        Returns the data as an IEEE double precision array without applying a transform
        Returns:
        a double[]
      • setEntry

        public final void setEntry(int index,
                                   double val)
        Description copied from interface: GJDataVectorInterface
        Sets a value in the DataBuffer This method should fire a PropertyChangeEvent when the buffer data are changed
        val - the new value as double
      • getDimension

        public final int getDimension()
        Length of the vector in the DataBuffer
        Returns:
        the length of the vector

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.