|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodel.BasicCorrelationFunction
public abstract class BasicCorrelationFunction
Basic implementation of a correlation function for GPs.
| Nested Class Summary | |
|---|---|
static class |
BasicCorrelationFunction.TYPE
Encodes correlation function types: EXP = exponential, SE = squred exponential, default is SE> |
| Field Summary | |
|---|---|
protected cern.colt.matrix.DoubleMatrix1D |
tauVec
|
| Constructor Summary | |
|---|---|
BasicCorrelationFunction()
Default constructor. |
|
| Method Summary | |
|---|---|
abstract double |
apply(cern.colt.matrix.DoubleMatrix1D x1,
cern.colt.matrix.DoubleMatrix1D x2)
Computes the correlation between the outputs at x1 and x2. |
cern.colt.matrix.DoubleMatrix1D |
apply(cern.colt.matrix.DoubleMatrix1D x1,
cern.colt.matrix.DoubleMatrix2D x2)
Computes the correlation between the output at a given input location x1 and those at a set of other input locations x2. |
cern.colt.matrix.DoubleMatrix1D |
apply(cern.colt.matrix.DoubleMatrix1D x1,
cern.colt.matrix.DoubleMatrix2D x2,
cern.colt.matrix.DoubleMatrix1D ans)
Same as apply(DoubleMatrix1D, DoubleMatrix2D), but stores the
result in the supplied vector. |
cern.colt.matrix.DoubleMatrix2D |
apply(cern.colt.matrix.DoubleMatrix2D x1,
cern.colt.matrix.DoubleMatrix2D x2)
Computes the correlation between outputs at input locations x1 and
x2. |
cern.colt.matrix.DoubleMatrix2D |
apply(cern.colt.matrix.DoubleMatrix2D x1,
cern.colt.matrix.DoubleMatrix2D x2,
cern.colt.matrix.DoubleMatrix2D ans)
Same as apply(DoubleMatrix2D, DoubleMatrix2D), but stores the
result in the supplied matrix. |
int |
getInputDimension()
Returns the input dimension. |
static BasicCorrelationFunction |
getInstance(BasicCorrelationFunction.TYPE type,
int inputDimension)
Creates and returns a correlation function instance, by default the squared exponential one. |
static BasicCorrelationFunction |
getInstance(int inputDimension)
Returns an instance of an SE correlation function in the given number of dimensions. |
double[] |
getTau()
Returns the length-scale parameter array tau. |
void |
setInputDimension(int inputDimension)
Sets the input dimension. |
void |
setTau(double[] tau)
Sets the length-scale parameter array tau. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected cern.colt.matrix.DoubleMatrix1D tauVec
| Constructor Detail |
|---|
public BasicCorrelationFunction()
| Method Detail |
|---|
public static BasicCorrelationFunction getInstance(BasicCorrelationFunction.TYPE type,
int inputDimension)
type - the BasicCorrelationFunction.TYPE of correlation function to create.inputDimension - the input dimension.
public static BasicCorrelationFunction getInstance(int inputDimension)
inputDimension - the given number of dimensions.
public abstract double apply(cern.colt.matrix.DoubleMatrix1D x1,
cern.colt.matrix.DoubleMatrix1D x2)
x1 and x2.
x1 - an input location.x2 - another input location.
public cern.colt.matrix.DoubleMatrix1D apply(cern.colt.matrix.DoubleMatrix1D x1,
cern.colt.matrix.DoubleMatrix2D x2)
x1 and those at a set of other input locations x2. Creates
a vector to hold the result.
x1 - the given input location.x2 - a set of input locations.
x1 and those at
x2.
public cern.colt.matrix.DoubleMatrix1D apply(cern.colt.matrix.DoubleMatrix1D x1,
cern.colt.matrix.DoubleMatrix2D x2,
cern.colt.matrix.DoubleMatrix1D ans)
apply(DoubleMatrix1D, DoubleMatrix2D), but stores the
result in the supplied vector.
x1 - an input location.x2 - a given set of input locations.ans - vector to hold the result.
ans for convenience.
public cern.colt.matrix.DoubleMatrix2D apply(cern.colt.matrix.DoubleMatrix2D x1,
cern.colt.matrix.DoubleMatrix2D x2)
x1 and
x2. Creates a matrix to hold the results.
x1 - one set of input locations.x2 - another set of input locations.
public cern.colt.matrix.DoubleMatrix2D apply(cern.colt.matrix.DoubleMatrix2D x1,
cern.colt.matrix.DoubleMatrix2D x2,
cern.colt.matrix.DoubleMatrix2D ans)
apply(DoubleMatrix2D, DoubleMatrix2D), but stores the
result in the supplied matrix.
x1 - a set of input locations.x2 - another set of input locations.ans - matrix to hold the result.
ans for convenience.public int getInputDimension()
public double[] getTau()
public void setInputDimension(int inputDimension)
setInputDimension in interface VariableInputDimensioninputDimension - the given input dimension.public void setTau(double[] tau)
tau - the given length scales.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||