public class HaebaraMethod extends AbstractMultivariateFunction implements LinearTransformation, Uncmin_methods, org.apache.commons.math3.analysis.UnivariateFunction
Constructor and Description |
---|
HaebaraMethod(java.util.HashMap<java.lang.String,ItemResponseModel> itemFormX,
java.util.HashMap<java.lang.String,ItemResponseModel> itemFormY,
DistributionApproximation xDistribution,
DistributionApproximation yDistribution,
EquatingCriterionType criterion) |
Modifier and Type | Method and Description |
---|---|
double |
f_to_minimize(double[] x) |
double |
getIntercept() |
double |
getQ1(double[] coefficient) |
double |
getQ2(double[] coefficient) |
double |
getScale() |
void |
gradient(double[] x,
double[] g) |
void |
hessian(double[] x,
double[][] h) |
void |
setIntercept(double intercept) |
void |
setPrecision(int precision) |
void |
setScale(double scale) |
void |
setStandardized(boolean standardized)
Flag to standardize criterion function.
|
double |
transform(double x) |
double |
value(double x)
Method needed for Brent optimizer when minimizing teh objective function for the Rasch family of models.
|
double |
value(double[] coefficient)
Function to be minimized by ConjugateGradientSearch
Uncmin index starts at 1
argument[1]=B (intercept) equating constant
argument[2]=A (slope) equating constant
|
gradient, gradientAt, hessianAt, machineEpsilon, partialDerivative
public HaebaraMethod(java.util.HashMap<java.lang.String,ItemResponseModel> itemFormX, java.util.HashMap<java.lang.String,ItemResponseModel> itemFormY, DistributionApproximation xDistribution, DistributionApproximation yDistribution, EquatingCriterionType criterion) throws org.apache.commons.math3.exception.DimensionMismatchException
org.apache.commons.math3.exception.DimensionMismatchException
public void setStandardized(boolean standardized)
standardized
- if true the criterion function is standardized. If not, it is not standardized.public double value(double[] coefficient)
value
in interface org.apache.commons.math3.analysis.MultivariateFunction
public double value(double x)
value
in interface org.apache.commons.math3.analysis.UnivariateFunction
x
- interceptpublic double getQ1(double[] coefficient)
public double getQ2(double[] coefficient)
public void setIntercept(double intercept)
public void setScale(double scale)
public double getIntercept()
getIntercept
in interface LinearTransformation
public double getScale()
getScale
in interface LinearTransformation
public void setPrecision(int precision)
public double transform(double x)
transform
in interface LinearTransformation
public double f_to_minimize(double[] x)
f_to_minimize
in interface Uncmin_methods
public void hessian(double[] x, double[][] h)
hessian
in interface Uncmin_methods
public void gradient(double[] x, double[] g)
gradient
in interface Uncmin_methods