Package empro :: Package toolkit :: Module dataset :: Class ComplexDataSet
[frames] | no frames]

Class ComplexDataSet

source code

Wrapper around two DataSets to emulate a single dataset of complex numbers.

ComplexDataSet has two attributes real and imag which are instances of empro.datasource.DataSet. They should be of the same dataType and share the same dimensions. ComplexDataSet emulates much of DataSet's interface, but for complex numbers instead of floats.

Instance Methods
 
__init__(real, imag, name=None)
construct a complex dataset from two real ones sharing the same dataType and dimensions.
source code
 
flat(self, index) source code
 
at(self, *args) source code
 
atValue(self, *args) source code
 
dataType(self) source code
 
getUnitClass(self) source code
 
bounds(self) source code
 
numberOfDimensions(self) source code
 
dimension(self, index) source code
 
dimensions(self) source code
 
size(self) source code
 
conjugate(self) source code
 
reciprocal(self) source code
 
__len__(self) source code
 
__getitem__(self, index) source code
 
__neg__(self) source code
 
__pos__(self) source code
 
__abs__(self) source code
 
__add__(self, other) source code
 
__sub__(self, other) source code
 
__mul__(self, other) source code
 
__truediv__(self, other) source code
 
__div__(self, other) source code
 
__radd__(self, other) source code
 
__rsub__(self, other) source code
 
__rmul__(self, other) source code
 
__rtruediv__(self, other) source code
 
__rdiv__(self, other) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
Properties
  real
  imag
  query
  name
  unitClass
Method Details

__init__(real, imag, name=None)
(Constructor)

source code 

construct a complex dataset from two real ones sharing the same dataType and dimensions. If name is None, one will be derived from real and imag.


Property Details

real

Get Method:
internal.real(self)

imag

Get Method:
internal.imag(self)

query

Get Method:
internal.query(self)

name

Get Method:
internal._getName(self)
Set Method:
internal._setName(self, name)

unitClass

Get Method:
internal.unitClass(self)