com.banda.function.business
Class FunctionUtility

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

public class FunctionUtility
extends Object


Method Summary
 Map<String,String> convertVarIndecesToStringPlaceholders(Map<Integer,Integer> indexVariableMap)
           
<T> Map<String,T>
convertVarIndexToStringPlaceholder(Map<Integer,T> indexVariableMap)
           
 Collection<com.banda.core.Pair<Boolean,Boolean>> createInputOutputTemporalFunSeries(BooleanFunction.BooleanFunctionType booleanFunctionType, int seriesLength, int timeWindowLength)
           
 Map<String,Double> createVariableNameValueMap(double[] values)
           
 String getFormulaIndexPlaceholdersReplacedWithVariableNames(Function<?,?> function, Map<Integer,String> variableIndexNameMap)
           
 String getFormulaIndexPlaceholdersReplacedWithVariableNames(String formula, Set<Integer> referencedVariableIndeces, Map<Integer,String> variableIndexNameMap)
           
 String getFormulaVariableNamesReplacedWithIndexPlaceholders(String formula, Set<Integer> referencedVariableIndeces, Map<Integer,String> variableIndexNameMap)
           
 String getFormulaWithReplacedIndexPlaceholders(Function<?,?> function, Map<Integer,Integer> variableIndexMap)
           
 String getFormulaWithReplacedVariablesNaive(String formula, Map<String,String> substitutionMap)
          Deprecated. 
 String getFunctionFormula(String functionTag, Collection<String> inputs)
           
 String getFunctionFormula(String functionTag, int variableIndex)
           
 String getFunctionFormula(String functionTag, String input)
           
 String getFunctionFormula(String functionTag, String[] inputs)
           
static FunctionUtility getInstance()
           
 String getVariablePlaceHolder(int index)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FunctionUtility getInstance()

convertVarIndexToStringPlaceholder

public <T> Map<String,T> convertVarIndexToStringPlaceholder(Map<Integer,T> indexVariableMap)

convertVarIndecesToStringPlaceholders

public Map<String,String> convertVarIndecesToStringPlaceholders(Map<Integer,Integer> indexVariableMap)

getFormulaIndexPlaceholdersReplacedWithVariableNames

public String getFormulaIndexPlaceholdersReplacedWithVariableNames(Function<?,?> function,
                                                                   Map<Integer,String> variableIndexNameMap)

getFormulaWithReplacedIndexPlaceholders

public String getFormulaWithReplacedIndexPlaceholders(Function<?,?> function,
                                                      Map<Integer,Integer> variableIndexMap)

getFormulaIndexPlaceholdersReplacedWithVariableNames

public String getFormulaIndexPlaceholdersReplacedWithVariableNames(String formula,
                                                                   Set<Integer> referencedVariableIndeces,
                                                                   Map<Integer,String> variableIndexNameMap)

getFormulaVariableNamesReplacedWithIndexPlaceholders

public String getFormulaVariableNamesReplacedWithIndexPlaceholders(String formula,
                                                                   Set<Integer> referencedVariableIndeces,
                                                                   Map<Integer,String> variableIndexNameMap)

getFormulaWithReplacedVariablesNaive

@Deprecated
public String getFormulaWithReplacedVariablesNaive(String formula,
                                                              Map<String,String> substitutionMap)
Deprecated. 


getFunctionFormula

public String getFunctionFormula(String functionTag,
                                 String[] inputs)

getFunctionFormula

public String getFunctionFormula(String functionTag,
                                 Collection<String> inputs)

getFunctionFormula

public String getFunctionFormula(String functionTag,
                                 int variableIndex)

getFunctionFormula

public String getFunctionFormula(String functionTag,
                                 String input)

getVariablePlaceHolder

public String getVariablePlaceHolder(int index)

createVariableNameValueMap

public Map<String,Double> createVariableNameValueMap(double[] values)

createInputOutputTemporalFunSeries

public Collection<com.banda.core.Pair<Boolean,Boolean>> createInputOutputTemporalFunSeries(BooleanFunction.BooleanFunctionType booleanFunctionType,
                                                                                           int seriesLength,
                                                                                           int timeWindowLength)

main

public static void main(String[] args)


Copyright © 2012. All Rights Reserved.