com.perisic.function
Class FourFunctionsFactory

java.lang.Object
  extended by com.perisic.function.FourFunctionsFactory

public class FourFunctionsFactory
extends java.lang.Object

Maps every point (x,y) with x,y in [0..1] to a Nice function, so that points that are close to each other are mapped to similar methods.

Copyright:(c) Marc Conrad, Tim French 2010; Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument. DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.

Author:
Marc Conrad

Field Summary
static double gridSize
           
 
Constructor Summary
FourFunctionsFactory()
           
 
Method Summary
static AnyFunction getFunctionAtPoint(long seed, double x, double y)
          Returns a function at point (x,y) via four functions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gridSize

public static double gridSize
Constructor Detail

FourFunctionsFactory

public FourFunctionsFactory()
Method Detail

getFunctionAtPoint

public static AnyFunction getFunctionAtPoint(long seed,
                                             double x,
                                             double y)
Returns a function at point (x,y) via four functions.

Parameters:
seed - a unique number that ininitiazlies the random number generator used for the functions.
x - must be between 0 and 1.
y - must be between 0 and 1.
Returns:
the four functions.