com.banda.function.business
Class FunctionFactory

java.lang.Object
  extended by com.banda.function.business.FunctionFactory

public class FunctionFactory
extends Object


Method Summary
 Function<Double[],Double> createAggregateFunctionFormula(AggregateFunction aggregateFunction, int variableIndex)
           
 Function<Double[],Double> createAggregateGreaterThanFunctionFormula(AggregateFunction aggregateFunction, int variableIndex, double thresholdValue)
           
 Function<Double[],Double> createAggregateGreaterThanFunctionFormula(AggregateFunction aggregateFunction, int variableIndex1, int variableIndex2)
           
 Function<Double,Double> createNormalRandomFunction(double mean, double variance)
           
 Function<Double,Double> createRandomFunction(com.banda.core.domain.rand.RandomDistribution<Double> randomDistribution)
           
 Function<Double,Double> createUniformRandomFunction(double from, double to)
           
 TransitionTable<Boolean,Boolean> getBoolTransitionTable(Collection<Boolean> tableOutputs)
           
static FunctionFactory getInstance()
           
 TransitionTable<Boolean,Boolean> getRandomBoolTransitionTable(int arity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FunctionFactory getInstance()

getRandomBoolTransitionTable

public TransitionTable<Boolean,Boolean> getRandomBoolTransitionTable(int arity)

getBoolTransitionTable

public TransitionTable<Boolean,Boolean> getBoolTransitionTable(Collection<Boolean> tableOutputs)

createRandomFunction

public Function<Double,Double> createRandomFunction(com.banda.core.domain.rand.RandomDistribution<Double> randomDistribution)

createUniformRandomFunction

public Function<Double,Double> createUniformRandomFunction(double from,
                                                           double to)

createNormalRandomFunction

public Function<Double,Double> createNormalRandomFunction(double mean,
                                                          double variance)

createAggregateFunctionFormula

public Function<Double[],Double> createAggregateFunctionFormula(AggregateFunction aggregateFunction,
                                                                int variableIndex)

createAggregateGreaterThanFunctionFormula

public Function<Double[],Double> createAggregateGreaterThanFunctionFormula(AggregateFunction aggregateFunction,
                                                                           int variableIndex,
                                                                           double thresholdValue)

createAggregateGreaterThanFunctionFormula

public Function<Double[],Double> createAggregateGreaterThanFunctionFormula(AggregateFunction aggregateFunction,
                                                                           int variableIndex1,
                                                                           int variableIndex2)


Copyright © 2012. All Rights Reserved.