|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfunction.BasicScalarFunction
function.VariableDomainScalarFunction
model.BasicTwoFidelityModel
public class BasicTwoFidelityModel
Basic two-fidelity approximation model, using an additive surrogate
correction. The difference is modeled using a GPRegression.
| Field Summary |
|---|
| Fields inherited from class function.BasicScalarFunction |
|---|
DEFAULT_BOUNDS, DEFAULT_DIM, VALUE_OUTSIDE_BOUNDS |
| Constructor Summary | |
|---|---|
BasicTwoFidelityModel()
|
|
| Method Summary | |
|---|---|
void |
calibrate()
Calibrates this DataFit. |
void |
calibrateOptional()
Optional calibration, based on some measure of calibration being required. |
void |
clear()
Notification that all data has been removed. |
int |
dataAdded(DataBlock block)
Notification that a DataBlock has been added. |
boolean |
dataAdded(DataPoint dataPoint)
Notification that a single DataPoint has been added. |
int |
dataRemoved(DataBlock dataBlock)
Notification that a DataBlock has been removed. |
boolean |
dataRemoved(DataPoint dataPoint)
Notification that a single DataPoint has been removed. |
GPRegression |
getDifferenceGP()
Returns the GPRegression modeling the difference between the high-
and low-fidelity analyses.. |
ScalarFunction |
getLoFiFunction()
Returns the low-fidelity approximation used by this ApproxModel. |
double |
getMaxUncertainty()
|
int |
getOutputNumber()
In the case when this DataFit operates on a multi-output DataBlocks, denotes the index of the output vector that it should
use. |
ScalarFunction |
getUncertaintyEstimator()
|
void |
init()
Initialization method. |
double |
quickCompute(double[] x)
Compute method without dimension checking. |
void |
quickCompute(cern.colt.matrix.DoubleMatrix2D mat,
cern.colt.matrix.DoubleMatrix1D outputs)
Compute method without dimension checking, operating on DoubleMatrix2D and exploiting optimized operations therein. |
void |
setDifferenceGP(GPRegression differenceGP)
Sets the difference-modeling GP. |
void |
setLoFiFunction(ScalarFunction function)
Sets the low-fidelity approximation to be used. |
void |
setOutputNumber(int outputNumber)
Sets the output index for this DataFit. |
| Methods inherited from class function.VariableDomainScalarFunction |
|---|
getBounds, getInputDimension, setBounds, setInputDimension |
| Methods inherited from class function.BasicScalarFunction |
|---|
checkDimensions, compute, compute, compute, compute, compute, compute, getOutputDimension, isWithinBounds, makeBounds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface function.ScalarFunction |
|---|
compute, compute, compute, compute |
| Methods inherited from interface function.Computable |
|---|
compute, compute, getBounds, getInputDimension, getOutputDimension, isWithinBounds |
| Methods inherited from interface function.VariableInputDimension |
|---|
setInputDimension |
| Methods inherited from interface function.VariableBounds |
|---|
setBounds |
| Constructor Detail |
|---|
public BasicTwoFidelityModel()
| Method Detail |
|---|
public void calibrate()
DataFit
calibrate in interface DataFitpublic void calibrateOptional()
DataFit
calibrateOptional in interface DataFitpublic void clear()
DataListener
clear in interface DataListenerpublic int dataAdded(DataBlock block)
DataListenerDataBlock has been added.
dataAdded in interface DataListenerblock - the DataBlock added.
public boolean dataAdded(DataPoint dataPoint)
DataListenerDataPoint has been added.
dataAdded in interface DataListenerdataPoint - the DataPoint added.
true if the DataPoint was successfully added.public int dataRemoved(DataBlock dataBlock)
DataListenerDataBlock has been removed.
dataRemoved in interface DataListenerdataBlock - the DataBlock removed.
DataPoints successfully removed.public boolean dataRemoved(DataPoint dataPoint)
DataListenerDataPoint has been removed.
dataRemoved in interface DataListenerdataPoint - the DataPointremoved.
true if the DataPoint was successfully
removed.public GPRegression getDifferenceGP()
GPRegression modeling the difference between the high-
and low-fidelity analyses..
public ScalarFunction getLoFiFunction()
TwoFidelityApproxModelApproxModel.
getLoFiFunction in interface TwoFidelityApproxModelpublic double getMaxUncertainty()
getMaxUncertainty in interface ApproxModelpublic int getOutputNumber()
DataFitDataBlocks, denotes the index of the output vector that it should
use.
getOutputNumber in interface DataFitpublic ScalarFunction getUncertaintyEstimator()
getUncertaintyEstimator in interface ApproxModelpublic void init()
BasicScalarFunction
init in interface ScalarFunctioninit in interface DataFitinit in class VariableDomainScalarFunctionpublic double quickCompute(double[] x)
BasicScalarFunction
quickCompute in interface ScalarFunctionquickCompute in class BasicScalarFunctionx - the given input.
public void quickCompute(cern.colt.matrix.DoubleMatrix2D mat,
cern.colt.matrix.DoubleMatrix1D outputs)
BasicScalarFunctionDoubleMatrix2D and exploiting optimized operations therein.
quickCompute in interface ScalarFunctionquickCompute in class BasicScalarFunctionmat - given matrix of inputs.outputs - vector to store the result.public void setDifferenceGP(GPRegression differenceGP)
differenceGP - the given GPRegression.public void setLoFiFunction(ScalarFunction function)
TwoFidelityApproxModel
setLoFiFunction in interface TwoFidelityApproxModelfunction - the given low-order function.public void setOutputNumber(int outputNumber)
DataFit
setOutputNumber in interface DataFitoutputNumber - the given output index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||