com.banda.function.business
Class FunctionUtility
java.lang.Object
com.banda.function.business.FunctionUtility
public class FunctionUtility
- extends Object
- Since:
- 2012
- Author:
- © Peter Banda
|
Method Summary |
Map<String,String> |
convertVarIndecesToStringPlaceholders(Map<Integer,Integer> indexVariableMap)
|
|
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 |
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 © 2013. All Rights Reserved.