org.das2.qds.CdfSparseDataSet

dataset for modeling when data values repeat. Instead of storing copies of the data, the get method looks up the index. For example:

 ds= CdfSparseDataSet(1,200,dataset(1))
 ds.putValues( 10, dataset(2) )
 ds.putValues( 110, dataset(3) )
 plot( ds )
 

CdfSparseDataSet( int rank, int length, QDataSet value )

create the DataSet with the given length.


datasetCount

datasetCount( ) → int

return the number of different datasets.

Returns:

the number of different datasets.

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


length

length( ) → int

Returns:

int

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

length( int i0 ) → int
length( int i0, int i1 ) → int
length( int i0, int i1, int i2 ) → int

putValues

putValues( int i0, QDataSet ds ) → void

insert these values into the dataset.

Parameters

i0 - the insertion index, these must be inserted in order.
ds - the dataset for this index and those after.

Returns:

void (returns nothing)

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


rank

rank( ) → int

Returns:

int

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


setLength

setLength( int length ) → void

allow clients to reset the length.

Parameters

length - an int

Returns:

void (returns nothing)

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


slice

slice( int i0 ) → QDataSet

Parameters

i0 - an int

Returns:

org.das2.qds.QDataSet

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


trim

trim( int i0, int i1 ) → QDataSet

Parameters

i0 - an int
i1 - an int

Returns:

org.das2.qds.QDataSet

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


value

value( int i0 ) → double

Parameters

i0 - an int

Returns:

double

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

value( int i0, int i1 ) → double
value( int i0, int i1, int i2 ) → double
value( int i0, int i1, int i2, int i3 ) → double