edu.jhu.ece.iacl.algorithms.spectro
Class MSWASSR.Symscore

java.lang.Object
  extended by edu.jhu.ece.iacl.algorithms.spectro.MSWASSR.Symscore
All Implemented Interfaces:
Optimizable1DContinuous
Enclosing class:
MSWASSR

public class MSWASSR.Symscore
extends java.lang.Object
implements Optimizable1DContinuous

function score = symscore(X,y,c) yc=interp1(c-X,y,X,'v5cubic'); score = meannan(((y(:)-yc(:)).^2));

Author:
bennett

Constructor Summary
MSWASSR.Symscore(double[] x, double[] y)
           
 
Method Summary
 double getDomainMax()
          Gets the maximum input of the function.
 double getDomainMin()
          Gets the minimum input of the function.
 double getDomainTolerance()
          Gets the tolerance.
 double getValue(double c)
          Gets the value of a function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSWASSR.Symscore

public MSWASSR.Symscore(double[] x,
                        double[] y)
Method Detail

getDomainMax

public double getDomainMax()
Description copied from interface: Optimizable1DContinuous
Gets the maximum input of the function.

Specified by:
getDomainMax in interface Optimizable1DContinuous
Returns:
maximum domain

getDomainMin

public double getDomainMin()
Description copied from interface: Optimizable1DContinuous
Gets the minimum input of the function.

Specified by:
getDomainMin in interface Optimizable1DContinuous
Returns:
minimum domain

getDomainTolerance

public double getDomainTolerance()
Description copied from interface: Optimizable1DContinuous
Gets the tolerance.

Specified by:
getDomainTolerance in interface Optimizable1DContinuous
Returns:
domain tolerance

getValue

public double getValue(double c)
Description copied from interface: Optimizable1DContinuous
Gets the value of a function.

Specified by:
getValue in interface Optimizable1DContinuous
Parameters:
c - the input
Returns:
the value of the function