|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpal.eval.ChiSquareValue
public class ChiSquareValue
computes chi-square value of a (parameterized) tree for its set of parameters (e.g., branch lengths) and a given distance matrix
| Constructor Summary | |
|---|---|
ChiSquareValue(DistanceMatrix m,
boolean w)
initialization |
|
| Method Summary | |
|---|---|
double |
compute()
compute (weighted) least-square value for current tree (fixed branch lengths) return chi-square value |
double |
evaluate(double[] params)
compute (weighted) least-squares value |
double |
getLowerBound(int n)
get lower bound of argument n |
int |
getNumArguments()
get number of parameters in tree |
OrthogonalHints |
getOrthogonalHints()
|
Tree |
getTree()
Returns the (parameterized) tree of this likelihood value. |
double |
getUpperBound(int n)
get upper bound of argument n |
double |
optimiseParameters()
optimise parameters of a tree by minimising its chi-square value (tree must be a ParameterizedTree) |
double |
optimiseParameters(MultivariateMinimum mm)
optimise parameters of a tree by minimising its chi-square value (tree must be a ParameterizedTree) |
void |
setTree(Tree t)
define (parameterized) tree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChiSquareValue(DistanceMatrix m,
boolean w)
m - distance matrixw - determines whether weighted or
unweighted chi-squares are computed| Method Detail |
|---|
public void setTree(Tree t)
t - treepublic Tree getTree()
public double compute()
public double optimiseParameters()
public double optimiseParameters(MultivariateMinimum mm)
mm - optimiser for ParameterizedTree
public double evaluate(double[] params)
evaluate in interface MultivariateFunctionparams - parameters (branch lengths) of the tree
public int getNumArguments()
getNumArguments in interface MultivariateFunctionpublic double getLowerBound(int n)
MultivariateFunction
getLowerBound in interface MultivariateFunctionn - argument number
public double getUpperBound(int n)
MultivariateFunction
getUpperBound in interface MultivariateFunctionn - argument number
public OrthogonalHints getOrthogonalHints()
getOrthogonalHints in interface MultivariateFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||