Documentation of 'visad.Function' Java class
Function
visad

Interface Function

    • Method Detail

      • getDomainDimension

        int getDomainDimension()
                        throws VisADException,
                               java.rmi.RemoteException
        Get the dimension (number of Real components) of this Function's domain
        Returns:
        number of RealType components (n in R^n space)
        Throws:
        VisADException
        java.rmi.RemoteException
      • getDomainUnits

        Unit[] getDomainUnits()
                       throws VisADException,
                              java.rmi.RemoteException
        Get the default Units of the Real components of the domain.
        Returns:
        array of Unit-s in the same order as the RealTypes in the domain.
        Throws:
        VisADException
        java.rmi.RemoteException
      • getDomainCoordinateSystem

        CoordinateSystem getDomainCoordinateSystem()
                                            throws VisADException,
                                                   java.rmi.RemoteException
        Get the CoordinateSystem associated with the domain RealTuple
        Returns:
        CoordinateSystem of the domain
        Throws:
        VisADException
        java.rmi.RemoteException
      • evaluate

        Data evaluate(Real domain)
               throws VisADException,
                      java.rmi.RemoteException
        Evaluate this Function at domain; for 1-D domains use default modes for resampling (Data.WEIGHTED_AVERAGE) and errors (Data.NO_ERRORS)
        Parameters:
        domain - value to evaluate at.
        Returns:
        Data object corresponding to the function value at that domain. may return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to evaluate function
        java.rmi.RemoteException - Java RMI exception
      • evaluate

        Data evaluate(Real domain,
                      int sampling_mode,
                      int error_mode)
               throws VisADException,
                      java.rmi.RemoteException
        Evaluate this Function, for 1-D domains, with non-default modes for resampling and errors
        Parameters:
        domain - value to evaluate at.
        sampling_mode - type of interpolation to perform (e.g., Data.WEIGHTED_AVERAGE, Data.NEAREST_NEIGHBOR)
        error_mode - type of error estimation to perform (e.g., Data.INDEPENDENT, Data.DEPENDENT, Data.NO_ERRORS)
        Returns:
        Data object corresponding to the function value at that domain, using the sampling_mode and error_modes specified. May return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to evaluate function
        java.rmi.RemoteException - Java RMI exception
      • evaluate

        Data evaluate(RealTuple domain)
               throws VisADException,
                      java.rmi.RemoteException
        Evaluate this Function at domain; use default modes for resampling (Data.WEIGHTED_AVERAGE) and errors (Data.NO_ERRORS)
        Parameters:
        domain - value to evaluate at.
        Returns:
        Data object corresponding to the function value at that domain. may return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to evaluate function
        java.rmi.RemoteException - Java RMI exception
      • evaluate

        Data evaluate(RealTuple domain,
                      int sampling_mode,
                      int error_mode)
               throws VisADException,
                      java.rmi.RemoteException
        Evaluate this Function with non-default modes for resampling and errors
        Parameters:
        domain - value to evaluate at.
        sampling_mode - type of interpolation to perform (e.g., Data.WEIGHTED_AVERAGE, Data.NEAREST_NEIGHBOR)
        error_mode - type of error estimation to perform (e.g., Data.INDEPENDENT, Data.DEPENDENT, Data.NO_ERRORS)
        Returns:
        Data object corresponding to the function value at that domain, using the sampling_mode and error_modes specified. May return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to evaluate function
        java.rmi.RemoteException - Java RMI exception
      • resample

        Field resample(Set set)
                throws VisADException,
                       java.rmi.RemoteException
        Return a Field of Function values at the samples in set using default sampling_mode (WEIGHTED_AVERAGE) and error_mode (NO_ERRORS); This combines unit conversions, coordinate transforms, resampling and interpolation
        Parameters:
        set - finite sampling values for the function.
        Returns:
        Data object corresponding to the function value at that domain. may return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to resample function
        java.rmi.RemoteException - Java RMI exception
      • resample

        Field resample(Set set,
                       int sampling_mode,
                       int error_mode)
                throws VisADException,
                       java.rmi.RemoteException
        Resample range values of this Function to domain samples in set; return a Field (i.e., a finite sampling of a Function). Use the specified sampling_mode and error_mode. This combines unit conversions, coordinate transforms, resampling and interpolation
        Parameters:
        set - finite sampling values for the function.
        sampling_mode - type of interpolation to perform (e.g., Data.WEIGHTED_AVERAGE, Data.NEAREST_NEIGHBOR)
        error_mode - type of error estimation to perform (e.g., Data.INDEPENDENT, Data.DEPENDENT, Data.NO_ERRORS)
        Returns:
        Data object corresponding to the function value at that domain, using the sampling_mode and error_modes specified. May return a missing data object of the same type as the Function's range.
        Throws:
        VisADException - unable to resample function
        java.rmi.RemoteException - Java RMI exception
      • derivative

        Function derivative(RealType d_partial,
                            int error_mode)
                     throws VisADException,
                            java.rmi.RemoteException
        return the derivative of this Function with respect to d_partial; d_partial may occur in this Function's domain RealTupleType, or, if the domain has a CoordinateSystem, in its Reference RealTupleType; propogate errors according to error_mode
        Throws:
        VisADException
        java.rmi.RemoteException
      • derivative

        Function derivative(RealType d_partial,
                            MathType derivType,
                            int error_mode)
                     throws VisADException,
                            java.rmi.RemoteException
        return the derivative of this Function with respect to d_partial; set result MathType to derivType; d_partial may occur in this Function's domain RealTupleType, or, if the domain has a CoordinateSystem, in its Reference RealTupleType; propogate errors according to error_mode
        Throws:
        VisADException
        java.rmi.RemoteException
      • derivative

        Data derivative(int error_mode)
                 throws VisADException,
                        java.rmi.RemoteException
        return the tuple of derivatives of this Function with respect to all RealType components of its domain RealTuple; propogate errors according to error_mode
        Throws:
        VisADException
        java.rmi.RemoteException
      • derivative

        Data derivative(MathType[] derivType_s,
                        int error_mode)
                 throws VisADException,
                        java.rmi.RemoteException
        return the tuple of derivatives of this Function with respect to all RealType components of its domain RealTuple; set result MathTypes of tuple components to derivType_s; propogate errors according to error_mode
        Throws:
        VisADException
        java.rmi.RemoteException
      • derivative

        Data derivative(RealTuple location,
                        RealType[] d_partial_s,
                        MathType[] derivType_s,
                        int error_mode)
                 throws VisADException,
                        java.rmi.RemoteException
        return the tuple of derivatives of this Function with respect to the RealTypes in d_partial_s; the RealTypes in d_partial_s may occur in this Function's domain RealTupleType, or, if the domain has a CoordinateSystem, in its Reference RealTupleType; set result MathTypes of tuple components to derivType_s; propogate errors according to error_mode
        Throws:
        VisADException
        java.rmi.RemoteException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.