parameters
Class ParameterSetArray
java.lang.Object
parameters.ParameterSetArray
- public class ParameterSetArray
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
totNumSets
public int totNumSets
numGroups
public int numGroups
tagNames
public java.util.Vector tagNames
CLOSING_STRING
public static final java.lang.String CLOSING_STRING
- See Also:
- Constant Field Values
ADDING_PARAM_SET_STRING
public static final java.lang.String ADDING_PARAM_SET_STRING
- See Also:
- Constant Field Values
REMOVING_PARAM_SET_STRING
public static final java.lang.String REMOVING_PARAM_SET_STRING
- See Also:
- Constant Field Values
ParameterSetArray
public ParameterSetArray()
ParameterSetArray
public ParameterSetArray(ParameterSet prototype)
addSet
public void addSet(ParameterSet set)
remove
public void remove(int set_num)
removeAll
public void removeAll()
loadParameters
public void loadParameters(BetterTokenizer tokenizer)
throws java.lang.Exception
- Throws:
java.lang.Exception
saveParameters
public void saveParameters(java.io.PrintWriter ps,
java.lang.String indent)
throws java.lang.Exception
- Throws:
java.lang.Exception
getNextSet
public ParameterSet getNextSet()
getPreviousSet
public ParameterSet getPreviousSet()
getCurSet
public ParameterSet getCurSet()
getCurSetNum
public int getCurSetNum()
getSetNum
public ParameterSet getSetNum(int num)
getCurTagNum
public int getCurTagNum()
getPrototype
public ParameterSet getPrototype()
goToBeginning
public ParameterSet goToBeginning()
goToSet
public ParameterSet goToSet(int num)
goToSet
public ParameterSet goToSet(ParameterSet set)
- Moves the arrays pointer to the currently selected set to point to the input set.
Returns that input set if it finds it in the array, otherwise returns null and
moves the pointer to the last set in the array.
atBeginning
public boolean atBeginning()
atEnd
public boolean atEnd()
calculateDistancesToSet
public MultiFloatReturn calculateDistancesToSet(ParameterSetArray parray2)
- Calculated the minimum and maximum distances between parameter sets in this
and the input parameter set array. Distances are calculated as the pythagorean
distance in n dimensions, where n is the number of parameters. Each parameter
is scaled by its range before doing the calculation so that all parameters
carry equal weight in the final distance.
This function is safe to use for comparing a paramsetarray with itself.
getHighThreshold
public float getHighThreshold()
setHighThreshold
public void setHighThreshold(float threshold)
getLowThreshold
public float getLowThreshold()
setLowThreshold
public void setLowThreshold(float threshold)
getCurTag
public java.lang.String getCurTag()
setCurTag
public void setCurTag(java.lang.String tag)
getFilename
public java.lang.String getFilename()
setFilename
public void setFilename(java.lang.String str)
getNumSets
public int getNumSets()
deleting
public void deleting()
- Call this before deleting the param set array.
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
updateOutput
public void updateOutput(java.lang.String type)