Interface NodalSurface

    • Method Detail

      • withMetadata

        NodalSurface withMetadata​(SurfaceMetadata metadata)
        Returns a new surface with the specified 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.

        Specified by:
        withMetadata in interface Surface
        Parameters:
        metadata - the new metadata for the surface
        Returns:
        the new surface
      • getXValues

        DoubleArray getXValues()
        Gets the known x-values of the surface.

        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.

        Returns:
        the x-values
      • getYValues

        DoubleArray getYValues()
        Gets the known y-values of the surface.

        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.

        Returns:
        the y-values
      • getZValues

        DoubleArray getZValues()
        Gets the known z-values of the surface.

        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.

        Returns:
        the z-values
      • withZValues

        NodalSurface withZValues​(DoubleArray values)
        Returns a new surface with the specified values.

        This allows the z-values of the surface to be changed while retaining the same x-values and y-values.

        Parameters:
        values - the new y-values for the surface
        Returns:
        the new surface
      • withParameter

        NodalSurface withParameter​(int parameterIndex,
                                   double newValue)
        Description copied from interface: ParameterizedData
        Returns a copy of the data with the value at the specified index altered.

        This instance is immutable and unaffected by this method call.

        Specified by:
        withParameter in interface ParameterizedData
        Specified by:
        withParameter in interface Surface
        Parameters:
        parameterIndex - the zero-based index of the parameter to get
        newValue - the new value for the specified parameter
        Returns:
        a parameterized data instance based on this with the specified parameter altered
      • withPerturbation

        default NodalSurface withPerturbation​(ParameterPerturbation perturbation)
        Description copied from interface: ParameterizedData
        Returns a perturbed copy of the data.

        The 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.

        Specified by:
        withPerturbation in interface ParameterizedData
        Specified by:
        withPerturbation in interface Surface
        Parameters:
        perturbation - the perturbation to apply
        Returns:
        a parameterized data instance based on this with the specified perturbation applied