Package slimpy_base.SLIMmath.function


Functions

def vector_max
 obj1 can be either a scalar or a vector.
def cpt
 --latex CurveLet Phase Weighting for thresholding.

Variables

string __copyright__
 Functions that do not directly need SLIMpy infastructure.
string __license__


Function Documentation

def slimpy_base.SLIMmath.function.cpt (   c,
  A 
)

--latex CurveLet Phase Weighting for thresholding.

\textit{c} is a SLIMpy vector instance. \textit{A} is a SLIMpy fdct lnear operator instance with Sizes file defined. Recall that curvelet coefficients come in pairs, one for sine and one for cosine, or equivalently at angles $\theta$ and $\theta$ + $\pi$, corresponding to the 'phase rotation'. Call $\phi_{\mu,a}$ and $\phi_{\mu,b}$ two curvelets that only differ by this phase rotation operation. Then $w_{\mu,a}$ and $w_{\mu,b}$ should be the same and defined from \begin{equation} \label{cpt} sqrt( {|c_{\mu,a}|^2 + |c_{\mu,b}|^2} ) \end{equation} instead of $c_{\mu,a}$, resp. $c_{\mu,b}$. Here all the $c_{\mu}$ are obtained from pred($s_{2}$). It makes sense if you consider the following situation: $c_{\mu,a}$ may be zero, for some non-essential reason (cancellations happen), but $c_{\mu,b}$ is huge. Then the penalty on primaries should not depend on whether the prediction of the multiples is of type 'cosine' or type 'sine' independent of phase rotation. Therefore a and b should be treated on the same footing.

Definition at line 60 of file function.py.

def slimpy_base.SLIMmath.function.vector_max (   obj1,
  obj2 
)

obj1 can be either a scalar or a vector.

obj2 must be a vector max(obj1,obj2) will return a vector the same size as obj2 with the largest elements taken from obj1 or obj2.

Definition at line 33 of file function.py.


Variable Documentation

string __copyright__

Initial value:

"""
Copyright 2008 Sean Ross-Ross
"""
Functions that do not directly need SLIMpy infastructure.

Definition at line 6 of file function.py.

string __license__

Initial value:

"""
This file is part of SLIMpy .

SLIMpy is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SLIMpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with SLIMpy . If not, see <http://www.gnu.org/licenses/>.
"""

Definition at line 9 of file function.py.


Generated on Sun Aug 10 09:11:12 2008 for SLIMpy by  doxygen 1.5.6