Package parsimony :: Package algorithms :: Module proximal :: Class ParallelDykstrasProjectionAlgorithm
[hide private]
[frames] | no frames]

Class ParallelDykstrasProjectionAlgorithm

source code

         object --+        
                  |        
bases.BaseAlgorithm --+    
                      |    
bases.ExplicitAlgorithm --+
                          |
                         ParallelDykstrasProjectionAlgorithm

Dykstra's projection algorithm for two or more functions. Computes the projection onto the intersection of two or more convex sets.

The functions have projection operators (ProjectionOperator.proj) onto the respective convex sets.

Instance Methods [hide private]
 
__init__(self, eps=5e-08, max_iter=100, min_iter=1)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
run(self, functions, x, weights=None)
Finds the projection onto the intersection of two sets.
source code

Inherited from bases.BaseAlgorithm: get_params, set_params

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

Static Methods [hide private]

Inherited from bases.BaseAlgorithm: check_compatibility

Class Variables [hide private]
  INTERFACES = [<class 'parsimony.functions.properties.Function'...
  __abstractmethods__ = frozenset([])
  _abc_negative_cache_version = 14

Inherited from bases.ExplicitAlgorithm: __metaclass__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, eps=5e-08, max_iter=100, min_iter=1)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

run(self, functions, x, weights=None)

source code 
Finds the projection onto the intersection of two sets.

Parameters
----------
functions : List or tuple with two or more elements. The functions.

x : Numpy array. The point that we wish to project.

weights : List or tuple with floats. Weights for the functions.
        Default is that they all have the same weight. The elements of
        the list or tuple must sum to 1.

Overrides: bases.ExplicitAlgorithm.run

Class Variable Details [hide private]

INTERFACES

Value:
[<class 'parsimony.functions.properties.Function'>,
 <class 'parsimony.functions.properties.ProjectionOperator'>]