cz.cuni.jagrlib.iface
Interface IntFunction

All Superinterfaces:
Property
All Known Implementing Classes:
DefaultIntFunction, ImagePredictor

public interface IntFunction
extends Property

General mappings to scalar integer range.

See Also:
IntFunction.java

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 int g(double x)
          Compute the mapping: double -> int.
 int g(double[] arg)
          Compute the mapping: double[] -> int.
 int g(double x, double y)
          Compute the mapping: double[2] -> int.
 int g(double x, double y, double z)
          Compute the mapping: double[3] -> int.
 int g(int x)
          Compute the mapping: int -> double.
 int g(int[] arg)
          Compute the mapping: int[] -> int.
 int g(int x, int y)
          Compute the mapping: int[2] -> int.
 int g(int x, int y, int z)
          Compute the mapping: int[3] -> int.
 double[] getDomain(double[] dom)
          Returns domain of the mapping.
 int[] getDomain(int[] dom)
          Returns domain of the mapping.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

g

int g(double x)
Compute the mapping: double -> int.


g

int g(int x)
Compute the mapping: int -> double.


g

int g(double x,
      double y)
Compute the mapping: double[2] -> int.


g

int g(int x,
      int y)
Compute the mapping: int[2] -> int.


g

int g(double x,
      double y,
      double z)
Compute the mapping: double[3] -> int.


g

int g(int x,
      int y,
      int z)
Compute the mapping: int[3] -> int.


g

int g(double[] arg)
Compute the mapping: double[] -> int.


g

int g(int[] arg)
Compute the mapping: int[] -> int.


getDomain

double[] getDomain(double[] dom)
Returns domain of the mapping.

Parameters:
dom - Domain array (dom[0] = Xmin, dom[1] = Xmax, etc.).
Returns:
null if this service is not implemented.

getDomain

int[] getDomain(int[] dom)
Returns domain of the mapping.

Parameters:
dom - Domain array (dom[0] = Xmin, dom[1] = Xmax, etc.).
Returns:
null if this service is not implemented.