com.softsynth.jmsl
Class DimAttributes
java.lang.Object
com.softsynth.jmsl.Limits
com.softsynth.jmsl.DimAttributes
- All Implemented Interfaces:
- java.io.Serializable
public class DimAttributes
- extends Limits
- implements java.io.Serializable
The properties of one dimension, used by MusicShape.
Call calcStats() in MusicShape before calling methods to retrieve calculated values
- Author:
- Nick Didkovsky
- See Also:
- Serialized Form
Methods inherited from class com.softsynth.jmsl.Limits |
clip, clipTo, clipTo, getHigh, getIntValue, getLow, getRange, getValue, main, randomStep, setLimits, setRange, setValue, within, within, within, within |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DimAttributes
public DimAttributes()
DimAttributes
public DimAttributes(java.lang.String n)
setDefault
public void setDefault(double value)
getDefault
public double getDefault()
getMin
public double getMin()
- Returns:
- precalculated minimim value found
getMean
public double getMean()
- return precalculated mean
getMax
public double getMax()
- return precalculated maximum value found
getSum
public double getSum()
- return precalulated sum
getName
public java.lang.String getName()
- Returns:
- name of dimension
printStats
public void printStats()
toString
public java.lang.String toString()
- Overrides:
toString
in class Limits