org.das2.datum.DatumVector


add

add( Datum d ) → DatumVector

Parameters

d - a Datum

Returns:

org.das2.datum.DatumVector

[search for examples] [view on GitHub] [view on old javadoc] [view source]


append

append( org.das2.datum.DatumVector a, org.das2.datum.DatumVector b ) → DatumVector

return a DatumVector which contains the elements of a and then the elements of b.

Parameters

a - null or a DatumVector
b - a DatumVector with compatible units.

Returns:

the DatumVector which contains the elements of a and then the elements of b.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


asList

asList( ) → Collection

return this DatumVector as a list of Datums.

Returns:

this DatumVector as a list of Datums.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


datumVectorsEqual

datumVectorsEqual( org.das2.datum.DatumVector a, org.das2.datum.DatumVector b ) → boolean

check that element-for-element the two are equal

Parameters

a - a DatumVector
b - a DatumVector

Returns:

true if they are equal.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


doubleValue

doubleValue( int index, Units toUnits ) → double

Parameters

index - an int
toUnits - an Units

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc] [view source]


get

get( int index ) → Datum

Parameters

index - an int

Returns:

org.das2.datum.Datum

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getLength

getLength( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getSubVector

getSubVector( int start, int end ) → DatumVector

return a subset of a vector

Parameters

start - the start index
end - the end index, exclusive.

Returns:

the DatumVector

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getUnits

getUnits( ) → Units

Returns:

org.das2.datum.Units

[search for examples] [view on GitHub] [view on old javadoc] [view source]


multiply

multiply( double d ) → DatumVector

Parameters

d - a double

Returns:

org.das2.datum.DatumVector

[search for examples] [view on GitHub] [view on old javadoc] [view source]


newDatumVector

newDatumVector( org.das2.datum.Datum[] array, Units units ) → DatumVector

Parameters

array - an org.das2.datum.Datum[]
units - an Units

Returns:

org.das2.datum.DatumVector

[search for examples] [view on GitHub] [view on old javadoc] [view source]

newDatumVector( double[] array, Units units ) → DatumVector
newDatumVector( double[] array, double resolution, Units units ) → DatumVector
newDatumVector( double[] array, int offset, int length, Units units ) → DatumVector

subtract

subtract( Datum d ) → DatumVector

Parameters

d - a Datum

Returns:

org.das2.datum.DatumVector

[search for examples] [view on GitHub] [view on old javadoc] [view source]


toDoubleArray

toDoubleArray( Units units ) → double

Parameters

units - an Units

Returns:

double[]

[search for examples] [view on GitHub] [view on old javadoc] [view source]

toDoubleArray( double[] array, Units units ) → double

toString

toString( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]