Package 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
-
Constructor Summary
Constructors Constructor Description DimAttributes()DimAttributes(java.lang.String n) -
Method Summary
Modifier and Type Method Description doublegetDefault()doublegetMax()return precalculated maximum value founddoublegetMean()return precalculated meandoublegetMin()java.lang.StringgetName()doublegetSum()return precalulated sumvoidprintStats()voidsetDefault(double value)java.lang.StringtoString()Methods inherited from class com.softsynth.jmsl.Limits
clip, clipTo, clipTo, getHigh, getIntValue, getLow, getRange, getValue, main, randomStep, setLimits, setRange, setValue, within, within, within, withinMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
DimAttributes
public DimAttributes() -
DimAttributes
public DimAttributes(java.lang.String n)
-
-
Method Details
-
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()
-