org.systemsbiology.gaggle.experiment.gui.vectormath
Class FloatArrayDataProvider

java.lang.Object
  extended by org.systemsbiology.gaggle.experiment.gui.vectormath.FloatArrayDataProvider
All Implemented Interfaces:
ReadOnlyVectorDataProvider, VectorDataProvider

public class FloatArrayDataProvider
extends java.lang.Object
implements VectorDataProvider

Data provider for arrays of floats.


Constructor Summary
FloatArrayDataProvider(float[] f)
           
 
Method Summary
 double getQuick(int index)
          Unchecked access to the double value at the specified index.
 void setQuick(int index, double value)
          Sets the element at the specified index to the specified value without range-checking.
 int size()
          Returns the number of elements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatArrayDataProvider

public FloatArrayDataProvider(float[] f)
Method Detail

size

public int size()
Description copied from interface: ReadOnlyVectorDataProvider
Returns the number of elements

Specified by:
size in interface ReadOnlyVectorDataProvider
Specified by:
size in interface VectorDataProvider

getQuick

public double getQuick(int index)
Description copied from interface: ReadOnlyVectorDataProvider
Unchecked access to the double value at the specified index.

Specified by:
getQuick in interface ReadOnlyVectorDataProvider
Specified by:
getQuick in interface VectorDataProvider

setQuick

public void setQuick(int index,
                     double value)
Description copied from interface: VectorDataProvider
Sets the element at the specified index to the specified value without range-checking.

Specified by:
setQuick in interface VectorDataProvider