| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectmpv2.DictionaryLearning
public class DictionaryLearning
| Field Summary | |
|---|---|
| static int | BMP | 
| static int | OMP | 
| static int | ORMP | 
| static int | PS | 
| Constructor Summary | |
|---|---|
| DictionaryLearning(AllMatrices D0,
                   boolean useDD) | |
| DictionaryLearning(AllMatrices D0,
                   boolean useDD,
                   int verb)Instantiate an object of this class by giving initial dictionary. | |
| Method Summary | |
|---|---|
|  SimpleMatrix | getDictionary() | 
|  int[] | getIndexW() | 
|  SymmetricMatrix | getInnerProductMatrix() | 
|  double | getLambda()Calculate and return lambda, the forgetting factor. | 
|  double | getLambda(double x)Calculate and return lambda, the forgetting factor. | 
|  int | getMPMet() | 
|  int | getNoTV() | 
|  double[] | getResidual() | 
|  double[] | getSnrTab() | 
|  double[] | getSumAllrrTab() | 
|  double[] | getSumAllwwTab() | 
|  double[] | getSumAllxxTab() | 
|  double | getSumrr() | 
|  double[] | getSumrrTab() | 
|  double | getSumww() | 
|  double[] | getSumwwTab() | 
|  double | getSumxx() | 
|  double[] | getSumxxTab() | 
|  SymmetricMatrix | getTheCMatrix() | 
|  double[] | getValueW() | 
|  double[] | getWeights() | 
|  void | ilsdla(double[] data,
       int noi)ILS-DLA, prosess several training vectors by Iterative Least Squares, ILS-DLA. | 
|  void | rlsdla(double[] data,
       int noi)RLS-DLA, prosess several training vectors by RLS-DLA. | 
|  void | rlsdla1(double[] x)RLS-DLA-1 Prosess a single training vector, one iteration of RLS-DLA. | 
|  void | setBMP() | 
|  void | setBMP(int s)Set the Matching Pursuit Method to BMP and parameters to use. | 
|  void | setLambda(char lamMet,
          double lamLow,
          double lamHigh,
          double lamPar)Set how to calculate the class variable lambda, the forgetting factor. | 
|  void | setLoggOff() | 
|  void | setLoggOn() | 
|  void | setOMP() | 
|  void | setOMP(int s,
       double rel,
       double abs)Set the Matching Pursuit Method to OMP and parameters to use. | 
|  void | setORMP() | 
|  void | setORMP(int s,
        double rel,
        double abs)Set the Matching Pursuit Method to ORMP and parameters to use. | 
|  void | setPS() | 
|  void | setPS(int s,
      double rel,
      double abs,
      int noc)Set the Matching Pursuit Method to Partial Search and parameters to use. | 
|  void | setVerbose(int verb)Set verbose and veryVerbose | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int BMP
public static final int OMP
public static final int ORMP
public static final int PS
| Constructor Detail | 
|---|
public DictionaryLearning(AllMatrices D0,
                          boolean useDD,
                          int verb)
D0 - The initial dictionary,useDD - a boolean to tell if the matrix of innerproduct 
           is to be used, (Matlab: DD = D'*D).verb - verbose level, default is 0
java.lang.IllegalArgumentException - Supplied data is too small
public DictionaryLearning(AllMatrices D0,
                          boolean useDD)
| Method Detail | 
|---|
public SimpleMatrix getDictionary()
public SymmetricMatrix getInnerProductMatrix()
public SymmetricMatrix getTheCMatrix()
public double[] getWeights()
public double[] getResidual()
public int getNoTV()
public int getMPMet()
public double getSumxx()
public double getSumww()
public double getSumrr()
public double[] getSumAllxxTab()
public double[] getSumAllwwTab()
public double[] getSumAllrrTab()
public double[] getSnrTab()
public double[] getSumxxTab()
public double[] getSumwwTab()
public double[] getSumrrTab()
public int[] getIndexW()
public double[] getValueW()
public double getLambda()
public double getLambda(double x)
x - a double which usually is (noTV/lambdaPar)
public void setLambda(char lamMet,
                      double lamLow,
                      double lamHigh,
                      double lamPar)
lamMet - 'L' linear, 'Q' quadratic, 'C' cubic, 'H' hyperbola, 
                    and 'E' exponential or '1'lamLow - lower value for lambdalamHigh - higher value for lambdalamPar - parameter 'a' for method, usually a quite large number
java.lang.IllegalArgumentExceptionpublic void setBMP()
public void setOMP()
public void setORMP()
public void setPS()
public void setBMP(int s)
s - max number of non-zeros to use in MP
public void setOMP(int s,
                   double rel,
                   double abs)
s - max number of non-zeros to use in MP. End MP when non-zeros in w == srel - max relative error to use in MP. End MP when ||r|| < rel*||x||abs - max absolute error to use in MP. End MP when ||r|| < abs
public void setORMP(int s,
                    double rel,
                    double abs)
s - max number of non-zeros to use in MP. End MP when non-zeros in w == srel - max relative error to use in MP. End MP when ||r|| < rel*||x||abs - max absolute error to use in MP. End MP when ||r|| < abs
public void setPS(int s,
                  double rel,
                  double abs,
                  int noc)
s - max number of non-zeros to use in MP. End MP when non-zeros in w == srel - max relative error to use in MP. End MP when ||r|| < rel*||x||abs - max absolute error to use in MP. End MP when ||r|| < absnoc - number of combinations to search, typically in range 5-200public void setLoggOn()
public void setLoggOff()
public void setVerbose(int verb)
verb - 0 for both false, 1 only verbose true, 2 both true
java.lang.IllegalArgumentException
public void rlsdla(double[] data,
                   int noi)
data - A concatenation of L vectors x each of length N, total length N*Lnoi - Number of iterations to do through the data set.
java.lang.IllegalArgumentExceptionpublic void rlsdla1(double[] x)
x - A vector of length N
public void ilsdla(double[] data,
                   int noi)
data - A concatenation of L vectors x each of length N, total length N*Lnoi - Number of iterations to do through the data set.
java.lang.IllegalArgumentException| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||