Class Range
Defined in: Piecewise.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Range(rangestring)
A Class which serves to represent mathematical ranges
|
Field Attributes | Field Name and Description |
---|---|
<static> <constant> |
Range.serializeName
A static constant to help with de/serialization
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Range.fromWebWorker(that)
Reattach methods after being passed to web worker
|
{Boolean}
|
inRange(num)
Tests if a value is within a range
|
{string}
|
toString()
Creates a string representation
|
A method to help with serializing and passing to web worker
|
Class Detail
Range(rangestring)
A Class which serves to represent mathematical ranges
- Parameters:
- {String} rangestring
- Anything of the standard mathematical forms [x,y],(x,y],[x,y),(x,y) where x,y in reals and square brackets are inclusive and parens are exclusive
Field Detail
<static> <constant>
Range.serializeName
A static constant to help with de/serialization
Method Detail
<static>
Range.fromWebWorker(that)
Reattach methods after being passed to web worker
- Parameters:
- {Object} that
- A Range stripped of methods
{Boolean}
inRange(num)
Tests if a value is within a range
- Parameters:
- {Double} num
- The value to be tested
- Returns:
- {Boolean} True or false depending on the range defined
{string}
toString()
Creates a string representation
- Returns:
- {string}
toWebWorker()
A method to help with serializing and passing to web worker