Package pod :: Class IterativeDecomposition
[frames] | no frames]

Class IterativeDecomposition

source code

object --+
         |
        IterativeDecomposition
Known Subclasses:

Decomposition interface definition.

Instance Methods
 
__init__(self, references, epsilon=1e-10, max_iter=20, max_factors=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
list
resolve(self, point)
Iterates decomposition until convergence or max iteration is reached.
source code
 
get_reference_weight(self, position)
Returns the weight assigned to the reference provided in the constructor at the indicated position.
source code
 
get_reference_weights(self)
Returns the weights assigned to the references in order to construct the proposed input.
source code
list
get_decomposition(self)
Returns the result of the decomposition process.
source code
float
get_error_norm(self)
Returns a measure of the decomposition error.
source code
 
__repr__(self)
repr(x)
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, references, epsilon=1e-10, max_iter=20, max_factors=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

resolve(self, point)

source code 

Iterates decomposition until convergence or max iteration is reached.

Parameters:
  • point (list) - coordinates of the point to be decompositiond
Returns: list
coordinates of decompositiond point

get_reference_weight(self, position)

source code 

Returns the weight assigned to the reference provided in the constructor at the indicated position.

Parameters:
  • position (int) - position of the reference in the list provided in the constructor

get_decomposition(self)

source code 

Returns the result of the decomposition process.

Returns: list
decomposition result

get_error_norm(self)

source code 

Returns a measure of the decomposition error.

Returns: float
length of the difference between the result and the initial point

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)