Package qubx :: Module maths :: Class FracPos
[hide private]
[frames] | no frames]

Class FracPos

source code

object --+
         |
        FracPos

Keeps a pointer in an array of data, for random but generally small-offset access by ODE solver.

Instance Methods [hide private]
 
__init__(self, data)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
update(self) source code
 
find(self, x)
Moves ix and frac_ix.
source code
 
subsample(self, dd)
Returns the interpolated value from array dd at the fractional index.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  data
list sorted increasing
  frac_ix
fractional position
  ix
current position
  n
len(data)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, data)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)