edu.jhu.bme.smile.commons.math
Class L1LSCompressedSensing

java.lang.Object
  extended by edu.jhu.bme.smile.commons.math.L1LSCompressedSensing
Direct Known Subclasses:
L1LSCompressedSensingNonNeg, L1LSCompressedSensingUnconstrained

public class L1LSCompressedSensing
extends java.lang.Object


Field Summary
protected  Matrix A
           
protected  double ALPHA
           
protected  Matrix At
           
protected  Matrix AtA2
           
protected  double BETA
           
protected  DenseMatrix cgA
           
protected  int m
           
protected  double MAX_LS_ITER
           
protected  double MAX_NT_ITER
           
protected  double MU
           
protected  int n
           
protected  CompRowMatrix pre
           
protected  boolean statusConverged
           
protected  boolean verbose
           
protected  Matrix x
           
 
Constructor Summary
L1LSCompressedSensing(double[][] A)
           
L1LSCompressedSensing(Matrix A)
           
 
Method Summary
 Matrix getMatrixResult()
           
 double[] getResult()
           
 boolean isConvereged()
           
 void setVerbose(boolean verbose)
           
 boolean solve(double[] y, double lambda)
           
 boolean solve(double[] y, double lambda, double reltol)
           
 boolean solve(double[] y, double lambda, double reltol, double maxError)
           
 boolean solve(double[] y, double lambda, double reltol, double maxError, boolean allowRestart)
           
 boolean solve(Matrix y, double lambda)
           
 boolean solve(Matrix y, double lambda, double reltol, double maxError, boolean allowRestart)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MU

protected double MU

MAX_NT_ITER

protected double MAX_NT_ITER

ALPHA

protected double ALPHA

BETA

protected double BETA

MAX_LS_ITER

protected double MAX_LS_ITER

A

protected Matrix A

At

protected Matrix At

AtA2

protected Matrix AtA2

x

protected Matrix x

m

protected int m

n

protected int n

cgA

protected DenseMatrix cgA

pre

protected CompRowMatrix pre

statusConverged

protected boolean statusConverged

verbose

protected boolean verbose
Constructor Detail

L1LSCompressedSensing

public L1LSCompressedSensing(double[][] A)

L1LSCompressedSensing

public L1LSCompressedSensing(Matrix A)
Method Detail

solve

public boolean solve(double[] y,
                     double lambda)

solve

public boolean solve(double[] y,
                     double lambda,
                     double reltol)

solve

public boolean solve(double[] y,
                     double lambda,
                     double reltol,
                     double maxError)

solve

public boolean solve(double[] y,
                     double lambda,
                     double reltol,
                     double maxError,
                     boolean allowRestart)

solve

public boolean solve(Matrix y,
                     double lambda)

solve

public boolean solve(Matrix y,
                     double lambda,
                     double reltol,
                     double maxError,
                     boolean allowRestart)

isConvereged

public boolean isConvereged()

setVerbose

public void setVerbose(boolean verbose)

getMatrixResult

public Matrix getMatrixResult()

getResult

public double[] getResult()