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)
 ds.putValues( 0, dataset(1) )
 ds.putValues( 10, dataset(2) )
 ds.putValues( 110, dataset(3) )
 plot( ds )
 


datasetCount

datasetCount( ) → int

return the number of different datasets.

Returns:

the number of different datasets.

search for examples view on GitHub view source


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 source