org.das2.datum.DatumVector


add

add( Datum d ) → org.das2.datum.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 ) → org.das2.datum.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( ) → java.util.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 ) → org.das2.datum.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 ) → org.das2.datum.DatumVector

Parameters

d - a double

Returns:

org.das2.datum.DatumVector

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


newDatumVector

newDatumVector( Datum[] array, Units units ) → org.das2.datum.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 ) → org.das2.datum.DatumVector
newDatumVector( double[] array, double resolution, Units units ) → org.das2.datum.DatumVector
newDatumVector( double[] array, int offset, int length, Units units ) → org.das2.datum.DatumVector

subtract

subtract( Datum d ) → org.das2.datum.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]