Package slimpy_base.SLIMmath.CurveRat


Functions

def curverat
 --latex This approach is based on rescaling the weighting vectors ( $w_{1}$ or $w_{2}$ ) in such a way that after the application of the rescaled vectors for soft thresholding a certain percentage (the n relatively largest coefficients) remain in the thresholded vector per scale or globally.

Variables

string __copyright__
string __license__


Function Documentation

def slimpy_base.SLIMmath.CurveRat.curverat (   curvec1,
  curvec2,
  cutv 
)

--latex This approach is based on rescaling the weighting vectors ( $w_{1}$ or $w_{2}$ ) in such a way that after the application of the rescaled vectors for soft thresholding a certain percentage (the n relatively largest coefficients) remain in the thresholded vector per scale or globally.

The operation is based on the following steps: \begin{enumerate} \item Initialize a vector of the size of the to be thresholded and thresholding vector \item Calculate the ratio ( rat = curvec1 / curvec2 ) over the total vector. \item Sort rat in descending order to evaluate for the coefficients mainly con- tributing to curvec1 \item Take the value of the sorted rat vector defined by an initial percentage of values you want to keep cutv. \end{enumerate}

Definition at line 42 of file CurveRat.py.


Variable Documentation

string __copyright__

Initial value:

"""
Copyright 2008 Sean Ross-Ross
"""

Definition at line 1 of file CurveRat.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 4 of file CurveRat.py.


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