public interface NodalSurface extends Surface
double nodal points.
This provides access to a surface mapping a double x-value and
double y-value to a double z-value.
The parameters of an x-y surface are the x-y values.
The values themselves are returned by getXValues() and getYValues().
The metadata is returned by Surface.getMetadata().
InterpolatedNodalSurface| Modifier and Type | Method and Description |
|---|---|
default ParameterMetadata |
getParameterMetadata(int parameterIndex)
Gets the metadata of the parameter at the specified index.
|
DoubleArray |
getXValues()
Gets the known x-values of the surface.
|
DoubleArray |
getYValues()
Gets the known y-values of the surface.
|
DoubleArray |
getZValues()
Gets the known z-values of the surface.
|
NodalSurface |
withMetadata(SurfaceMetadata metadata)
Returns a new surface with the specified metadata.
|
NodalSurface |
withParameter(int parameterIndex,
double newValue)
Returns a copy of the data with the value at the specified index altered.
|
default NodalSurface |
withPerturbation(ParameterPerturbation perturbation)
Returns a perturbed copy of the data.
|
NodalSurface |
withZValues(DoubleArray values)
Returns a new surface with the specified values.
|
createParameterSensitivity, createParameterSensitivity, findParameterIndex, firstPartialDerivatives, getMetadata, getName, zValue, zValue, zValueParameterSensitivity, zValueParameterSensitivitygetParameter, getParameterCountNodalSurface withMetadata(SurfaceMetadata metadata)
This allows the metadata of the surface to be changed while retaining all other information. If parameter metadata is present, the size of the list must match the number of parameters of this surface.
withMetadata in interface Surfacemetadata - the new metadata for the surfacedefault ParameterMetadata getParameterMetadata(int parameterIndex)
If there is no specific parameter metadata, SimpleSurfaceParameterMetadata will be created.
getParameterMetadata in interface ParameterizedDatagetParameterMetadata in interface SurfaceparameterIndex - the zero-based index of the parameter to getIndexOutOfBoundsException - if the index is invalidDoubleArray getXValues()
This method returns the fixed x-values used to define the surface. This will be of the same size as the y-values and z-values.
DoubleArray getYValues()
This method returns the fixed y-values used to define the surface. This will be of the same size as the x-values and z-values.
DoubleArray getZValues()
This method returns the fixed z-values used to define the surface. This will be of the same size as the x-values and y-values.
NodalSurface withZValues(DoubleArray values)
This allows the z-values of the surface to be changed while retaining the same x-values and y-values.
values - the new y-values for the surfaceNodalSurface withParameter(int parameterIndex, double newValue)
ParameterizedDataThis instance is immutable and unaffected by this method call.
withParameter in interface ParameterizedDatawithParameter in interface SurfaceparameterIndex - the zero-based index of the parameter to getnewValue - the new value for the specified parameterdefault NodalSurface withPerturbation(ParameterPerturbation perturbation)
ParameterizedDataThe perturbation instance will be invoked once for each parameter in this instance, returning the perturbed value for that parameter. The result of this method is a new instance that is based on those perturbed values.
This instance is immutable and unaffected by this method call.
withPerturbation in interface ParameterizedDatawithPerturbation in interface Surfaceperturbation - the perturbation to applyCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.