cz.cuni.jagrlib.iface
Interface Interpolation1D

All Superinterfaces:
Property

public interface Interpolation1D
extends Property

General interpolation / approximation interface (mapping from <A,B> to RN).

Since:
0.10
See Also:
Interpolation1D.java

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 boolean compute(double t)
          Compute the interpolation / approximation (front-end only).
 boolean getDomain(double[] dom)
          Returns domain of the T parameter.
 double interpolate(double t)
          Compute scalar interpolation / approximation.
 boolean interpolate(double t, double[] res)
          Compute vector interpolation / approximation.
 boolean setAttribute(double t, double[] attr)
          Sets a knot attribute (whatever it is) for value of T.
 boolean setDomain(double[] dom)
          Sets domain of the T parameter.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

compute

boolean compute(double t)
Compute the interpolation / approximation (front-end only).

Parameters:
t - T parameter.
Returns:
true if this service is implemented.

interpolate

double interpolate(double t)
Compute scalar interpolation / approximation.

Parameters:
t - T parameter.
Returns:
Interpolated value.

interpolate

boolean interpolate(double t,
                    double[] res)
Compute vector interpolation / approximation.

Parameters:
t - T parameter.
res - Pre-allocated result array.
Returns:
true if this service is implemented.

getDomain

boolean getDomain(double[] dom)
Returns domain of the T parameter.

Parameters:
dom - Domain array (dom[0] = Tmin, dom[1] = Tmax).
Returns:
true if this service is implemented.

setDomain

boolean setDomain(double[] dom)
Sets domain of the T parameter.

Parameters:
dom - Domain array (dom[0] = Tmin, dom[1] = Tmax).
Returns:
true if this service is implemented.

setAttribute

boolean setAttribute(double t,
                     double[] attr)
Sets a knot attribute (whatever it is) for value of T.

Parameters:
t - T parameter.
attr - Attribute array (semanthics is not defined).
Returns:
true if this service is implemented.