scalation
Members list
Packages
Type members
Classlikes
The BiMap class maps keys to values and values to keys.
The BiMap class maps keys to values and values to keys.
Type parameters
- K
-
the key type
- V
-
the value type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The Calc object provides a template for evaluating/calculating scalar functions. Replace the part after the equal sign with your formula.
The Calc object provides a template for evaluating/calculating scalar functions. Replace the part after the equal sign with your formula.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Calc.type
The CircularQueue provides a circular queue that can be used to store the latest 'cap' elements.
The CircularQueue provides a circular queue that can be used to store the latest 'cap' elements.
Value parameters
- cap
-
the capacity or maximum number of elements that can be stored
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The Complex companion object defines the origin (zero) and the four roots of unity as well as some utility functions.
The Complex class is used to represent and operate on complex numbers. Internally, a complex number is represented as two double precision floating point numbers (Double). Externally, two forms are supported:
The Complex class is used to represent and operate on complex numbers. Internally, a complex number is represented as two double precision floating point numbers (Double). Externally, two forms are supported:
a+bi = 2.1+3.2i via: Complex ("2.1+3.2i"), 'toString'
(a, b) = (2.1, 3.2) via: create ("(2.1, 3.2)"), 'toString2'
Note: 'i * i = -1'.
Value parameters
- im
-
the imaginary part (e.g., 3.2)
- re
-
the real part (e.g., 2.1)
Attributes
- Companion
- object
- Supertypes
The Coordinates class calculates the animation coordinates for a set of provided lat-long coordinates. Uses CTM (Custom Transverse Mercator) coordinates as an intermediate step.
The Coordinates class calculates the animation coordinates for a set of provided lat-long coordinates. Uses CTM (Custom Transverse Mercator) coordinates as an intermediate step.
Value parameters
- aniHeight
-
the height of the animation window
- aniWidth
-
the width of the animation window
- coords
-
an array of lat-long coordinates
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The Counter class supports the creation of counters.
The Counter class supports the creation of counters.
Value parameters
- value_
-
the initial value for the counter
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The DoublyLinkedList class provides a data structure implementing mutable doubly-linked lists. Imagine a line of elements/cars moving left to right in a list/lane: remove head/lead car when it reaches the end of the lane add tail/last car when it reaches the beginning of the lane
The DoublyLinkedList class provides a data structure implementing mutable doubly-linked lists. Imagine a line of elements/cars moving left to right in a list/lane: remove head/lead car when it reaches the end of the lane add tail/last car when it reaches the beginning of the lane
ahead --> -->
tail (last car) --> [c3] [c2] [c1] <-- head (lead car)
behind <-- <--
Type parameters
- A
-
the type of the elements/values in the list
Attributes
- Supertypes
-
trait Serializableclass AbstractIterable[A]trait Iterable[A]class AbstractIterable[A]trait Iterable[A]trait IterableFactoryDefaults[A, Iterable]trait IterableOps[A, Iterable, Iterable[A]]trait IterableOnceOps[A, Iterable, Iterable[A]]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
The Earth object stores basic Earth properties.
The Earth object stores basic Earth properties.
Attributes
- See also
-
en.wikipedia.org/wiki/Earth_radius
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Earth.type
The EasyWriter class makes it easy to switch between writing to standard output and a (log) file.
The EasyWriter class makes it easy to switch between writing to standard output and a (log) file.
Value parameters
- filename
-
the name of the file to be written
- project
-
the project or directory involved
- toFile
-
flag indicating whether to write to a file
Attributes
- Supertypes
-
class Writertrait Flushabletrait Closeabletrait AutoCloseabletrait Appendableclass Objecttrait Matchableclass AnyShow all
The Fib object provides a method for computing Fibonacci numbers.
The Fib object provides a method for computing Fibonacci numbers.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Fib.type
The GetterSetter object provides an example of how to create getter and setter methods in Scala 3: private field variable 'name', getter method 'name', setter method 'name='.
The GetterSetter object provides an example of how to create getter and setter methods in Scala 3: private field variable 'name', getter method 'name', setter method 'name='.
Attributes
- See also
-
kkyr.io/blog/getters-and-setters-in-scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GetterSetter.type
The HyperParameter class provides a simple and flexible means for handling model/optimization hyper-parameters. A model/optimizer may have one or more hyper-parameters that are organized into a map name -> (value, defaultV). Allows hyper-parameters to be changed without constant re-compilation or resorting to long arguments lists Usage: hp("eta") = 0.01
The HyperParameter class provides a simple and flexible means for handling model/optimization hyper-parameters. A model/optimizer may have one or more hyper-parameters that are organized into a map name -> (value, defaultV). Allows hyper-parameters to be changed without constant re-compilation or resorting to long arguments lists Usage: hp("eta") = 0.01
Attributes
- Supertypes
-
trait Cloneableclass Objecttrait Matchableclass Any
The LatLong class stores Latitude-Longitude coordinates. Note: when converting from String to a number use 'mk' not 'to' (e.g., mkInt not toInt).
The LatLong class stores Latitude-Longitude coordinates. Note: when converting from String to a number use 'mk' not 'to' (e.g., mkInt not toInt).
Value parameters
- lat
-
the latitude in degrees North of the Equator
- long
-
the longitude in degrees East of the Prime Meridian
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The LatLong2CTM object supports conversion from latlong coordinates to CTM (Custom Transverse Mercator) coordinates
The LatLong2CTM object supports conversion from latlong coordinates to CTM (Custom Transverse Mercator) coordinates
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
LatLong2CTM.type
The LatLong2UTM object support conversion from Latitude-Longitude coordinates to Universal Transverse Mercator (UTM) coordinates.
The LatLong2UTM object support conversion from Latitude-Longitude coordinates to Universal Transverse Mercator (UTM) coordinates.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
LatLong2UTM.type
The MergeSortIndirect class provides an implementation of Indirect Merge Sort, a version of mergesort that does not re-arrange the array, but modifies an Int array called perm such that perm(i) is the index of the i-th smallest entry in the array (i.e., a(perm(i)) <= a(perm(i+1)). The isort method returns the permutation that sorts array a in perm.
The MergeSortIndirect class provides an implementation of Indirect Merge Sort, a version of mergesort that does not re-arrange the array, but modifies an Int array called perm such that perm(i) is the index of the i-th smallest entry in the array (i.e., a(perm(i)) <= a(perm(i+1)). The isort method returns the permutation that sorts array a in perm.
Value parameters
- a
-
the array to be indirectly sorted
- perm
-
the initial permutation, either 0 until a.length or result of last isort
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The MinMaxHeap class stores elements in a heap that is organized to make finding both the minimum and maximum elements efficient. It includes methods to serve as a Double-Ended Priority Queue (DEPQ).
The MinMaxHeap class stores elements in a heap that is organized to make finding both the minimum and maximum elements efficient. It includes methods to serve as a Double-Ended Priority Queue (DEPQ).
Value parameters
- cap
-
the capacity/limit on the number of elements allowed in the heap
- heap_
-
optionally provide an initial heap ordered array
Attributes
- Supertypes
-
trait Serializabletrait Growable[T]trait Clearableclass AbstractIterable[T]trait Iterable[T]class AbstractIterable[T]trait Iterable[T]trait IterableFactoryDefaults[T, Iterable]trait IterableOps[T, Iterable, Iterable[T]]trait IterableOnceOps[T, Iterable, Iterable[T]]trait IterableOnce[T]class Objecttrait Matchableclass AnyShow all
The MultiArrayDeques class provides a data structure for storing multiple ArrayDeques for the purpose of maintaining multiple parallel lanes. For example cars on a multi-lane road can be positioned in this data structure. It allows cars to added and removed and supports finding cars at a similar distance (from the start) to be found in another lane.
The MultiArrayDeques class provides a data structure for storing multiple ArrayDeques for the purpose of maintaining multiple parallel lanes. For example cars on a multi-lane road can be positioned in this data structure. It allows cars to added and removed and supports finding cars at a similar distance (from the start) to be found in another lane.
Value parameters
- nLanes
-
the number of lanes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The PriorityQueue class implements priority queues using a heap. To prioritize elements of type A there must be an implicit Ordering [A] available at creation.
The PriorityQueue class implements priority queues using a heap. To prioritize elements of type A there must be an implicit Ordering [A] available at creation.
If multiple elements have the same priority in the ordering of this PriorityQueue, no guarantees are made regarding the order in which elements are returned by dequeue or dequeueAll. In particular, that means this class does not guarantee first in first out behaviour that may be incorrectly inferred from the Queue part of the name of this class.
Only the dequeue and dequeueAll methods will return elements in priority order (while removing elements from the heap). Standard collection methods including drop, iterator, and toString will remove or traverse the heap in whichever order seems most convenient.
Therefore, printing a PriorityQueue will not reveal the priority order of the elements, though the highest-priority element will be printed first. To print the elements in order, one must duplicate the PriorityQueue (by using clone, for instance) and then dequeue them:
Type parameters
- A
-
type of the elements in this priority queue.
Value parameters
- ord
-
implicit ordering used to compare the elements of type
A.
Attributes
- Example
-
val pq = collection.mutable.PriorityQueue(1, 2, 5, 3, 7) println(pq) // elements probably not in order println(pq.clone.dequeueAll) // prints ArraySeq(7, 5, 3, 2, 1) - Companion
- object
- Supertypes
-
trait Serializabletrait Cloneabletrait Growable[A]trait Clearableclass AbstractIterable[A]trait Iterable[A]class AbstractIterable[A]trait Iterable[A]trait IterableFactoryDefaults[A, Iterable]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
The PriorityQueue object provides methods for creating priority queues.
The PriorityQueue object provides methods for creating priority queues.
Attributes
- Companion
- class
- Supertypes
-
trait SortedIterableFactory[PriorityQueue]trait Puretrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
PriorityQueue.type
The PriorityQueueFW object provides methods for creating priority queues.
The PriorityQueueFW object provides methods for creating priority queues.
Attributes
- Companion
- class
- Supertypes
-
trait SortedIterableFactory[PriorityQueueFW]trait Puretrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
PriorityQueueFW.type
The PriorityQueueFW class implements priority queues using a heap. To prioritize elements of type A there must be an implicit Ordering [A] available at creation.
The PriorityQueueFW class implements priority queues using a heap. To prioritize elements of type A there must be an implicit Ordering [A] available at creation.
If multiple elements have the same priority in the ordering of this PriorityQueueFW, no guarantees are made regarding the order in which elements are returned by dequeue or dequeueAll. In particular, that means this class does not guarantee first in first out behaviour that may be incorrectly inferred from the Queue part of the name of this class.
Only the dequeue and dequeueAll methods will return elements in priority order (while removing elements from the heap). Standard collection methods including drop, iterator, and toString will remove or traverse the heap in whichever order seems most convenient.
Therefore, printing a PriorityQueueFW will not reveal the priority order of the elements, though the highest-priority element will be printed first. To print the elements in order, one must duplicate the PriorityQueueFW (by using clone, for instance) and then dequeue them:
Type parameters
- A
-
type of the elements in this priority queue.
Value parameters
- cap
-
the capacity (maximum number of elements + 1) of this fixed width priority queue
- ord
-
implicit ordering used to compare the elements of type
A.
Attributes
- Example
-
val pq = collection.mutable.PriorityQueueFW(1, 2, 5, 3, 7) println(pq) // elements probably not in order println(pq.clone.dequeueAll) // prints ArraySeq(7, 5, 3, 2, 1) - Companion
- object
- Supertypes
-
trait Serializabletrait Cloneabletrait Growable[A]trait Clearableclass AbstractIterable[A]trait Iterable[A]class AbstractIterable[A]trait Iterable[A]trait IterableFactoryDefaults[A, Iterable]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
The Rat companion object defines the origin (zero), one and minus one as well as some utility functions.
The Rat class is used to represent and operate on rational numbers. Internally, a rational number is represented as two long integers. Externally, two forms are supported:
The Rat class is used to represent and operate on rational numbers. Internally, a rational number is represented as two long integers. Externally, two forms are supported:
a/b = 2/3 via: Rat ("2/3"), 'toString'
(a, b) = (2, 3) via: create ("(2, 3)") 'toString2'
A Rat number can be created without loss of precision using the constructor, apply, create or fromBigDecimal methods. Other methods may lose precision.
Value parameters
- den
-
the denominator (e.g., 3L)
- num
-
the numerator (e.g., 2L)
Attributes
- Companion
- object
- Supertypes
The Ring class provides a circular array that can be used to store the latest cap elements. Example to add elements 1, 2, 3, 4, 5, 6, 7 keeping the most recebt 5: [ 1, 2, 3, 4, 5 ] f = 0, l = 4 [ 6, 7, 3, 4, 5 ] f = 2, l = 1
The Ring class provides a circular array that can be used to store the latest cap elements. Example to add elements 1, 2, 3, 4, 5, 6, 7 keeping the most recebt 5: [ 1, 2, 3, 4, 5 ] f = 0, l = 4 [ 6, 7, 3, 4, 5 ] f = 2, l = 1
Value parameters
- cap
-
the capacity or maximum number of elements that can be stored
- zero
-
an element that indicates zero for type A
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The SetterOnly class provides an example of how to create a setter method for a protected variable.
The SetterOnly class provides an example of how to create a setter method for a protected variable.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The SimpleUniform case class for generating random numbers in the interval [a, b].
The SimpleUniform case class for generating random numbers in the interval [a, b].
Attributes
- See also
-
scalation.random.Uniform - Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
The SkipList class ...
The SkipList class ...
Type parameters
- K
-
the type of the keys contained in this sorted map
- V
-
the type of the values assigned to keys in this sorted map
Value parameters
- ordering
-
the implicit ordering used to compare objects of type K
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The SkipNodeType ...
The SkipNodeType ...
Type parameters
- K
-
the type of the keys contained in this sorted map
- V
-
the type of the values assigned to keys in this sorted map
Value parameters
- key
-
the key for this node
- next
-
array of references to next nodes
- value
-
the value for this node
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The SortedArray class provides a circular array that can be used to store the latest cap elements. Example to add elements 1, 2, 3, 4, 5, 6, 7 keeping the most recebt 5: [ 1, 2, 3, 4, 5 ] f = 0, l = 4 [ 6, 7, 3, 4, 5 ] f = 2, l = 1
The SortedArray class provides a circular array that can be used to store the latest cap elements. Example to add elements 1, 2, 3, 4, 5, 6, 7 keeping the most recebt 5: [ 1, 2, 3, 4, 5 ] f = 0, l = 4 [ 6, 7, 3, 4, 5 ] f = 2, l = 1
Value parameters
- cap
-
the capacity or maximum number of elements that can be stored
- zero
-
an element that indicates zero for type A
Attributes
- Supertypes
-
trait Serializabletrait Growable[A]trait Clearableclass AbstractIterable[A]trait Iterable[A]class AbstractIterable[A]trait Iterable[A]trait IterableFactoryDefaults[A, Iterable]trait IterableOps[A, Iterable, Iterable[A]]trait IterableOnceOps[A, Iterable, Iterable[A]]trait IterableOnce[A]class Objecttrait Matchableclass AnyShow all
The TimeNum class is used to represent and operate on date-time numbers. Internally, a date-time number is represented as an Instant.
The TimeNum class is used to represent and operate on date-time numbers. Internally, a date-time number is represented as an Instant.
Value parameters
- inst
-
the underlying
Instantof time
Attributes
- Companion
- object
- Supertypes
The TimeNum companion object is used to represent and operate on date-time values. It contains an implicit class definition for TimeNum, which extends Instant with Numeric operations that can be used in VectorT. The java.time.Instant class stores nano-seconds since the UNIX Epoch using a long for seconds and int for nano-seconds (12 bytes or 96 bits). The java.time.ZonedDateTime class is used with it to handle various date-time formats.
The TimeNum companion object is used to represent and operate on date-time values. It contains an implicit class definition for TimeNum, which extends Instant with Numeric operations that can be used in VectorT. The java.time.Instant class stores nano-seconds since the UNIX Epoch using a long for seconds and int for nano-seconds (12 bytes or 96 bits). The java.time.ZonedDateTime class is used with it to handle various date-time formats.
Attributes
The UTM2LatLong object support conversion from Universal_Transverse_Mercator (UTM) coordinates to Latitude-Longitude coordinates.
The UTM2LatLong object support conversion from Universal_Transverse_Mercator (UTM) coordinates to Latitude-Longitude coordinates.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
UTM2LatLong.type
The Unicode object provides arrays to facilitate the use of Unicode. ScalaTion currently uses a few UTF-16 characters, see code below. Most UTF-16 characters are 2 bytes (16 bits). Extended characters are encoded in 4 bytes. The 7-bit ASCII range is a subset of Unicode, the first 128 code points from U+0000 to U+007F ScalaTion limits characters to the range '\u0000' to 'U+2BFF'. Developers should test Unicode symbols here before trying them in the code.
The Unicode object provides arrays to facilitate the use of Unicode. ScalaTion currently uses a few UTF-16 characters, see code below. Most UTF-16 characters are 2 bytes (16 bits). Extended characters are encoded in 4 bytes. The 7-bit ASCII range is a subset of Unicode, the first 128 code points from U+0000 to U+007F ScalaTion limits characters to the range '\u0000' to 'U+2BFF'. Developers should test Unicode symbols here before trying them in the code.
Attributes
- See also
-
en.wikipedia.org/wiki/UTF-16
en.wikipedia.org/wiki/List_of_Unicode_characters
arxiv.org/abs/1112.1751
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Unicode.type
The ValueTypeOrd object provides Ordering for ValueType via the compare method. Used by methods that need Ordering for ValueType, e.g., max (ValueTypeOrd).
The ValueTypeOrd object provides Ordering for ValueType via the compare method. Used by methods that need Ordering for ValueType, e.g., max (ValueTypeOrd).
Attributes
- Supertypes
- Self type
-
ValueTypeOrd.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Types
Type definition for functions mapping scalar Double to scalar Double
Type definition for functions mapping scalar Double to scalar Double
Attributes
Type definition for an interval [a, b]
Type definition for an interval [a, b]
Attributes
The Property type is a map from property names to property values.
The Property type is a map from property names to property values.
Attributes
Value members
Concrete methods
Print a banner, i.e., a string in a box.
Print a banner, i.e., a string in a box.
Value parameters
- str
-
the string to put in the banner
Attributes
The biMapTest main function is used the test the BiMap class.
The biMapTest main function is used the test the BiMap class.
runMain scalation.biMapTest
Attributes
The boolTest main function tests the Bool extension methods.
The boolTest main function tests the Bool extension methods.
runMain scalation.boolTest
Attributes
The cube function of type FunctionS2S. Its inverse function is cbrt.
The cube function of type FunctionS2S. Its inverse function is cbrt.
Value parameters
- x
-
the value to cube
Attributes
C/Java style for loop provides improved performance. usage: var i = 0; cfor (i < 10, i += 1) { a(i) = 2 * i }
C/Java style for loop provides improved performance. usage: var i = 0; cfor (i < 10, i += 1) { a(i) = 2 * i }
Value parameters
- body
-
main body of the loop
- pred
-
loop continuation predicate/condition
- step
-
increment step
Attributes
- See also
-
cforTestmain function at the end of this file
The cforTest main function tests the cfor loops that are faster replacements for Scala's for-comprehension. Run this code for performance results. Note, due to JIT, reordering the code may change the relative performance. Generally, case 4 "cfor (0, 100000) { ... }" is the fastest.
The cforTest main function tests the cfor loops that are faster replacements for Scala's for-comprehension. Run this code for performance results. Note, due to JIT, reordering the code may change the relative performance. Generally, case 4 "cfor (0, 100000) { ... }" is the fastest.
Attributes
- See also
-
Timer.scala
runMain scalation.cforTest
The circularQueueTest main function is used to test the CircularQueue class.
The circularQueueTest main function is used to test the CircularQueue class.
runMain scalation.circularQueueTest
Attributes
The commonFunTest main function is used to test the functions in CommonFunctions.scala. np.expm1(1e-10) = 1.00000000005e-10 np.exp(1e-10) - 1 = 1.000000082740371e-10
The commonFunTest main function is used to test the functions in CommonFunctions.scala. np.expm1(1e-10) = 1.00000000005e-10 np.exp(1e-10) - 1 = 1.000000082740371e-10
Attributes
- See also
-
numpy.org/doc/stable/reference/generated/numpy.expm1.html Note: (log, exp) are common transformation pairs and (log1p, expm1) and (lhs, sinh) are roughly similar (see plots) and handle the log(0) = -infinity problem.
runMain scalation.commonFunTest
The complexTest main function is used to test the Complex class.
The complexTest main function is used to test the Complex class.
runMain scalation.mathstat.complexTest
Attributes
Test main for the Coordinates class. The lat-longs are collected coordinates around the Loop 10 highway in Athens, GA, USA.
Test main for the Coordinates class. The lat-longs are collected coordinates around the Loop 10 highway in Athens, GA, USA.
runMain scalation.coordinatesTest
Attributes
Test main for Coordinates class. The lat-longs are collected coordinates around the Loop 10 highway in Athens, GA, USA.
Test main for Coordinates class. The lat-longs are collected coordinates around the Loop 10 highway in Athens, GA, USA.
runMain scalation.coordinatesTest2
Attributes
Test main for Coordinates class. The lat-longs are collected coordinates around the Loop 10 highway in Athens, GA, USA.
Test main for Coordinates class. The lat-longs are collected coordinates around the Loop 10 highway in Athens, GA, USA.
runMain scalation.coordinatesTest3
Attributes
Test main for Coordinates class. The lat-longs are collected coordinates around the 101N highway in San Francisco, CA, USA 401474, 404533, 425697,402380, 402376, 400388, 402379, 400981, 401653 419452No data, 405673, 400859, 401927, 401872, 404534, 402398, 404529 422116, 401874, 402377
Test main for Coordinates class. The lat-longs are collected coordinates around the 101N highway in San Francisco, CA, USA 401474, 404533, 425697,402380, 402376, 400388, 402379, 400981, 401653 419452No data, 405673, 400859, 401927, 401872, 404534, 402398, 404529 422116, 401874, 402377
runMain scalation.coordinatesTest4
Attributes
The cotangent function of type FunctionS2S (function missing from scala.math). Its inverse function is atan.
The cotangent function of type FunctionS2S (function missing from scala.math). Its inverse function is atan.
Value parameters
- x
-
the angle in radians
Attributes
The counterTest main function test the Counter class.
The counterTest main function test the Counter class.
runMain scalation.counterTest
Attributes
The cosecant function of type FunctionS2S (function missing from scala.math). Its inverse function is acsc.
The cosecant function of type FunctionS2S (function missing from scala.math). Its inverse function is acsc.
Value parameters
- x
-
the angle in radians
Attributes
Show the debugging information that can be enabled or disabled. Usage: def debug: Unit = debugf ("MyClass", true) debug ("myMethod", s"x = $x")
Show the debugging information that can be enabled or disabled. Usage: def debug: Unit = debugf ("MyClass", true) debug ("myMethod", s"x = $x")
Value parameters
- clsName
-
the class/trait/object containing the method
- enabled
-
indicates whether the debug message is enabled
- message
-
the error message
- method
-
the method where the error occurred
Attributes
The doublyLinkedListTest main function tests the DoublyLinkedList class.
The doublyLinkedListTest main function tests the DoublyLinkedList class.
runMain scalation.doublyLinkedListTest
Attributes
The doublyLinkedListTest main function tests the DoublyLinkedList class.
The doublyLinkedListTest main function tests the DoublyLinkedList class.
runMain scalation.doublyLinkedListTest2
Attributes
The easyWriterTest main function is used to test the EasyWriter class. It will write into a file, unless there is a command-line argument.
The easyWriterTest main function is used to test the EasyWriter class. It will write into a file, unless there is a command-line argument.
runMain scalation.easyWriterTest
Attributes
The fibTest main function test the Fib object.
The fibTest main function test the Fib object.
runMain scalation.fibTest
Attributes
Show the flaw by printing the error message and returning false. Usage: def flaw: Unit = flawf ("MyClass") flaw ("myMethod", "Houston we have a problem")
Show the flaw by printing the error message and returning false. Usage: def flaw: Unit = flawf ("MyClass") flaw ("myMethod", "Houston we have a problem")
Value parameters
- clsName
-
the class/trait/object containing the method
- message
-
the error message
- method
-
the method where the error occurred
Attributes
Format a double value for printing.
Format a double value for printing.
Value parameters
- x
-
the double value to format
Attributes
Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'gauge { block }'. Return the block of code's elapsed time.
Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'gauge { block }'. Return the block of code's elapsed time.
Value parameters
- block
-
the block of code to be executed
Attributes
- See also
The genIndexHtml main function is used to create "index.html" files in source code directories (main and test) to enable Web browsing of source code.
The genIndexHtml main function is used to create "index.html" files in source code directories (main and test) to enable Web browsing of source code.
runMain scalation.GenIndexHtml
Attributes
Return a line iterator for a line-oriented data source (e.g., CSV file). The data source is accessed via (1) URL, (2) file's absolute path, or (3) file's relative path (relative to 'DATA-DIR').
Return a line iterator for a line-oriented data source (e.g., CSV file). The data source is accessed via (1) URL, (2) file's absolute path, or (3) file's relative path (relative to 'DATA-DIR').
Value parameters
- path
-
the path name of the data source (via URL or file's path name)
Attributes
- See also
-
stackoverflow.com/questions/5713558/detect-and-extract-url-from-a-string
The getterSetterTest main function shows how to use getter and setter methods in Scala 3.
The getterSetterTest main function shows how to use getter and setter methods in Scala 3.
runMain scalation.getterSetterTest
Attributes
The hyperParameterTest main function is used to test the HyperParameter class.
The hyperParameterTest main function is used to test the HyperParameter class.
runMain scalation.hyperParameterTest
Attributes
The hyperParameterTest2 main function is used to test the HyperParameter class.
The hyperParameterTest2 main function is used to test the HyperParameter class.
runMain scalation.hyperParameterTest2
Attributes
The identity function of type FunctionS2S. Its inverse function is itself.
The identity function of type FunctionS2S. Its inverse function is itself.
Value parameters
- x
-
the value to return
Attributes
The Inverse Hyperbolic Sine (IHS) arsinh function of type FunctionS2S. It approximates the log function and avoids the problem of computing log(0).
The Inverse Hyperbolic Sine (IHS) arsinh function of type FunctionS2S. It approximates the log function and avoids the problem of computing log(0).
Value parameters
- x
-
the value whose ihs is sought
Attributes
- See also
-
marcfbellemare.com/wordpress/12856 Its inverse function is sinh.
Convert Boolean to Int (true -> 1, false -> 0).
Convert Boolean to Int (true -> 1, false -> 0).
Value parameters
- p
-
the predicate to convert
Attributes
The latLongTest main function tests UTM to LatLong conversions in both directions.
The latLongTest main function tests UTM to LatLong conversions in both directions.
runMain scalation.latLongTest
Attributes
The latLongTest2 main function tests distance calculations based on latitude longitude locations for typical elevation (Athens, GA to Atlanta, GA).
The latLongTest2 main function tests distance calculations based on latitude longitude locations for typical elevation (Athens, GA to Atlanta, GA).
runMain scalation.latLongTest2
Attributes
The latLongTest3 main function tests distance calculations based on latitude longitude locations for high elevation (Aspen, CO to Breckenridge, CO).
The latLongTest3 main function tests distance calculations based on latitude longitude locations for high elevation (Aspen, CO to Breckenridge, CO).
runMain scalation.latLongTest3
Attributes
The latLongTest4 main function tests the kNearest method used to find locations near by to Athens, GA.
The latLongTest4 main function tests the kNearest method used to find locations near by to Athens, GA.
runMain scalation.latLongTest4
Attributes
The log base 2 function of type FunctionS2S. Its inverse function is pow2.
The log base 2 function of type FunctionS2S. Its inverse function is pow2.
Value parameters
- x
-
the value whose log is sought
Attributes
The log base b function (note log is the natural log). Its inverse function is pow.
The log base b function (note log is the natural log). Its inverse function is pow.
Value parameters
- b
-
the base of the logarithm
- x
-
the value whose log is sought
Attributes
Find the y-th root of x, i.e., x ~^ 1/y for Scala Longs. r = x ~^ 1/y is largest long integer r such that r ~^ y <= x.
Find the y-th root of x, i.e., x ~^ 1/y for Scala Longs. r = x ~^ 1/y is largest long integer r such that r ~^ y <= x.
Value parameters
- x
-
the Long base parameter
- y
-
the Long root level (reciprocal exponent) parameter
Attributes
- See also
The makeVectorI main function make a draft version of VectorI from VectorD. It reads from standard input and writes to standard output.
The makeVectorI main function make a draft version of VectorI from VectorD. It reads from standard input and writes to standard output.
sbt run
outfile
Attributes
The rectified linear function (max with 0) of type FunctionS2S. Its inverse function does not exit.
The rectified linear function (max with 0) of type FunctionS2S. Its inverse function does not exit.
Value parameters
- x
-
the value to return
Attributes
Return the maximum of three values: x, y, z.
Return the maximum of three values: x, y, z.
Value parameters
- x
-
the first value
- y
-
the second value
- z
-
the third value
Attributes
Return x, unless it is lees than the lower limit in absolute value, return limit with x's sign.
Return x, unless it is lees than the lower limit in absolute value, return limit with x's sign.
Value parameters
- limit
-
the lower limit (a small positive value)
- x
-
the given value
Attributes
Find the median of three unordered numbers.
Find the median of three unordered numbers.
Value parameters
- a1
-
the first number
- a2
-
the second number
- a3
-
the third number
Attributes
Return the free, total, and max memory in MB (actually MiB).
Return the free, total, and max memory in MB (actually MiB).
Attributes
The mergeSortIndirectTest is used to test the MergeSortIndirect class. This test illustrates sorting multiple types.
The mergeSortIndirectTest is used to test the MergeSortIndirect class. This test illustrates sorting multiple types.
runMain scalation.mergeSortIndirectTest
Attributes
The mergeSortIndirectTest2 is used to test the MergeSortIndirect class. This test illustrates sorting multiple columns.
The mergeSortIndirectTest2 is used to test the MergeSortIndirect class. This test illustrates sorting multiple columns.
runMain scalation.mergeSortIndirectTest2
Attributes
The minMaxHeapTest main function tests the MinMaxHeapTest class.
The minMaxHeapTest main function tests the MinMaxHeapTest class.
runMain scalation.minMaxHeapTest
Attributes
The minMaxHeapTest2 main function tests the MinMaxHeapTest class.
The minMaxHeapTest2 main function tests the MinMaxHeapTest class.
Attributes
- See also
-
scalation.Timer.timerunMain scalation.minMaxHeapTest2
The multiArrayDequesTest main function tests the MultiArrayDeques class.
The multiArrayDequesTest main function tests the MultiArrayDeques class.
runMain scalation.multiArrayDequesTest
Attributes
Value parameters
- x
-
the first double precision floating point number
- y
-
the second double precision floating point number
Attributes
- See also
-
stackoverflow.com/questions/4915462/how-should-i-do-floating-point-comparison
If both 'x' and 'y' are NaN (Not-a-Number), the IEEE standard indicates that should be considered always not equal. For 'near_eq', they are considered nearly equal. Comment out the first line below to conform more closely to the IEEE standard.
The power base 10 function 10^x of type FunctionS2S. Its inverse function is log10.
The power base 10 function 10^x of type FunctionS2S. Its inverse function is log10.
Value parameters
- x
-
the value of the exponent 10^x
Attributes
The power base 2 function 2^x of type FunctionS2S. Its inverse function is log2.
The power base 2 function 2^x of type FunctionS2S. Its inverse function is log2.
Value parameters
- x
-
the value of the exponent 2^x
Attributes
The power to p function x^p of type FunctionS2S. Its inverse function is powTo (1/p)(x) Usage: define a new function pow3 = powTo (3) so pow3 (x) = x^3
The power to p function x^p of type FunctionS2S. Its inverse function is powTo (1/p)(x) Usage: define a new function pow3 = powTo (3) so pow3 (x) = x^3
Value parameters
- p
-
the value of the exponent/power x^p
- x
-
the value of the base x^p
Attributes
Raise x to a rational (fractional) power r = b/c where b and c are longs using logic to handle the sign separately if the exponent is a simple fraction with an odd denominator. In particular, use pow when x is non-negative, else the identity (−a)^(b/c) = (−1)^b a^(b/c) when c is odd, otherwise return Not-a-Number (NaN).
Raise x to a rational (fractional) power r = b/c where b and c are longs using logic to handle the sign separately if the exponent is a simple fraction with an odd denominator. In particular, use pow when x is non-negative, else the identity (−a)^(b/c) = (−1)^b a^(b/c) when c is odd, otherwise return Not-a-Number (NaN).
Value parameters
- r
-
the rational
Ratexponent: power/root, num/den, b/c - x
-
the value of the base x^r
Attributes
- See also
-
math.stackexchange.com/questions/317528/how-do-you-compute-negative-numbers-to-fractional-powers
Power function for scala Longs x ~^ y. Compute: math.pow (x, y).toLong without using floating point, so as to not lose precision.
Power function for scala Longs x ~^ y. Compute: math.pow (x, y).toLong without using floating point, so as to not lose precision.
Value parameters
- x
-
the Long base parameter
- y
-
the Long exponent parameter
Attributes
The priorityQueueFWTest main function tests the PriorityQueueFW class.
The priorityQueueFWTest main function tests the PriorityQueueFW class.
runMain scalation.priorityQueueFWTest
Attributes
The ratTest main function is used to test the Rat class.
The ratTest main function is used to test the Rat class.
runMain scalation.ratTest
Attributes
Read and print each line in the file.
Read and print each line in the file.
Value parameters
- fileName
-
the file name (relative or full path)
- fullPath
-
flag indicating whether the user wants full or relative file paths defaults to false (relative paths)
Attributes
- See also
-
DATA_DIRin Util.scala
Read each line in the file and put each one into an array that's returned.
Read each line in the file and put each one into an array that's returned.
Value parameters
- fileName
-
the file name (relative or full path)
- fullPath
-
flag indicating whether the user wants full or relative file paths defaults to false (relative paths)
- limit
-
the limit on the number of lines to read
Attributes
- See also
-
DATA_DIRin Util.scalagetFromURL_Filein Util.scala has similar functionality, but returns anIterator
Read the file one line at a time by returning an iterator. The client code should call hasNext to see if there are more lines, next to read the next line, and close to close the buffer at the end. The iterator and buffer are returned.
Read the file one line at a time by returning an iterator. The client code should call hasNext to see if there are more lines, next to read the next line, and close to close the buffer at the end. The iterator and buffer are returned.
Value parameters
- fileName
-
the file name (relative or full path)
- fullPath
-
flag indicating whether the user wants full or relative file paths defaults to false (relative paths)
Attributes
- See also
-
DATA_DIRin Util.scala
The readFileTest main function is used to test the file reading functions. Read the travel time dataset.
The readFileTest main function is used to test the file reading functions. Read the travel time dataset.
runMain scalation.readFileTest
Attributes
The readFileTest2 main function is used to test the file reading functions. Read the COVID-19 dataset with a limit of 200 lines.
The readFileTest2 main function is used to test the file reading functions. Read the COVID-19 dataset with a limit of 200 lines.
runMain scalation.readFileTest2
Attributes
The reciprocal function of type FunctionS2S. Its inverse function is itself.
The reciprocal function of type FunctionS2S. Its inverse function is itself.
Value parameters
- x
-
the value to take the reciprocal of
Attributes
The redirectOutTest main function is used to redirect standard output (stdout). FIX - should work without writing System.out.
The redirectOutTest main function is used to redirect standard output (stdout). FIX - should work without writing System.out.
runMain scalation.redirectOutTest
Attributes
Return the relative difference between x and y.
Return the relative difference between x and y.
Value parameters
- x
-
the first double precision floating point number
- y
-
the second double precision floating point number
Attributes
Remove 'n' characters starting at position 'i' in string 'str' and return the new string.
Remove 'n' characters starting at position 'i' in string 'str' and return the new string.
Value parameters
- i
-
the starting position for character removal
- n
-
the number of characters to remove
- str
-
the source string
Attributes
Remove the last path element from the file/directory pathname.
Remove the last path element from the file/directory pathname.
Value parameters
- s
-
the string to be so truncated
Attributes
The ringTest main function is used to test the Ring class.
The ringTest main function is used to test the Ring class.
runMain scalation.ringTest
Attributes
Round the given double x to the closest integer (Int).
Round the given double x to the closest integer (Int).
Value parameters
- x
-
the double number which needs to be rounded
Attributes
Round the given double x to the closest long integer (Long).
Round the given double x to the closest long integer (Long).
Value parameters
- x
-
the double number which needs to be rounded
Attributes
Round the given double x to the desired number of decimal places.
Round the given double x to the desired number of decimal places.
Value parameters
- places
-
the desired number of decimal places
- x
-
the double number which needs to be rounded off
Attributes
The runCalc main function evaluates the function f on the given input.
The runCalc main function evaluates the function f on the given input.
Value parameters
- x
-
the command-line argument passed to function f
runMain scalation.runCalc
Attributes
The runCalcHelp main function list the operators used in floating point calculations.
The runCalcHelp main function list the operators used in floating point calculations.
runMain scalation.runCalcHelp
Attributes
Safe method for converting a String into a Double that catches the exceptions and avoids the "infinite loop problem".
Safe method for converting a String into a Double that catches the exceptions and avoids the "infinite loop problem".
Value parameters
- s
-
the string to convert to a Double
Attributes
Safe method for converting a String into a Int that catches the exceptions and avoids the "infinite loop problem".
Safe method for converting a String into a Int that catches the exceptions and avoids the "infinite loop problem".
Value parameters
- s
-
the string to convert to an Int
Attributes
Safe method for converting a String into a Long that catches the exceptions and avoids the "infinite loop problem".
Safe method for converting a String into a Long that catches the exceptions and avoids the "infinite loop problem".
Value parameters
- s
-
the string to convert to a Long
Attributes
The secant function of type FunctionS2S (function missing from scala.math). Its inverse function is asec.
The secant function of type FunctionS2S (function missing from scala.math). Its inverse function is asec.
Value parameters
- x
-
the angle in radians
Attributes
Return the absolute value of x with the sign of y.
Return the absolute value of x with the sign of y.
Value parameters
- x
-
the value contributor
- y
-
the sign contributor
Attributes
The skipListTest main function test the SkipList class.
The skipListTest main function test the SkipList class.
runMain scalation.database.skipListTest
Attributes
Make a string for use in printing a line of '-'s.
Make a string for use in printing a line of '-'s.
Value parameters
- n
-
the number of '-'s to use
Attributes
The sortedArrayTest main function is used to test the SortedArray class.
The sortedArrayTest main function is used to test the SortedArray class.
runMain scalation.sortedArrayTest
Attributes
The sortedArrayTest2 main function is used to test the SortedArray class. This test used the reverse order.
The sortedArrayTest2 main function is used to test the SortedArray class. This test used the reverse order.
Attributes
The sortedSetExtTest main function test the SortedSetExt extension methods.
The sortedSetExtTest main function test the SortedSetExt extension methods.
runMain scalation.sortedSetExtTest
Attributes
The square function of type FunctionS2S. Its inverse function is sqrt.
The square function of type FunctionS2S. Its inverse function is sqrt.
Value parameters
- x
-
the value to square
Attributes
Summation of the formula applied n times over a range of values. usage: sumAll (0, 10) { i => 2 * i }
Summation of the formula applied n times over a range of values. usage: sumAll (0, 10) { i => 2 * i }
Value parameters
- end
-
ending value (i < end)
- formula
-
the formula to apply, repeatedly
- start
-
initialization value (i = start)
Attributes
Summation of the formula applied n times.
Summation of the formula applied n times.
Value parameters
- formula
-
the formula (taking no arguments) to apply, repeatedly
- n
-
the number of iterations
Attributes
Swap two elements in a regular array.
Swap two elements in a regular array.
Value parameters
- i
-
first element to swap
- j
-
second element to swap
Attributes
Print the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'time { block }'. Return any result produced by the block of code.
Print the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'time { block }'. Return any result produced by the block of code.
Value parameters
- block
-
the block of code to be executed
Attributes
- See also
The timeNumTest main function is used to test the TimeNum class.
The timeNumTest main function is used to test the TimeNum class.
runMain scalation.timeNumTest
Attributes
The timeNumTest2 main function is used to test the TimeNum class regarding approximately equal date-times.
The timeNumTest2 main function is used to test the TimeNum class regarding approximately equal date-times.
runMain scalation.timeNumTest2
Attributes
The timeNumTest3 main function is used to test the TimeNum class regarding its getChrono method.
The timeNumTest3 main function is used to test the TimeNum class regarding its getChrono method.
runMain scalation.timeNumTest3
Attributes
Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'timed { block }'. Return any result produced by the block of code and its elapsed time.
Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'timed { block }'. Return any result produced by the block of code and its elapsed time.
Value parameters
- block
-
the block of code to be executed
Attributes
- See also
Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'timedX { block }'. Return any result produced by the block of code and the average elapsed time.
Calculate the elapsed time in milliseconds (ms) for the execution of an arbitrary block of code: 'timedX { block }'. Return any result produced by the block of code and the average elapsed time.
Value parameters
- amplify
-
the number of times to execute the block of code
- block
-
the block of code to be executed
- skip
-
whether to skip the first execution due to slowness of the JIT-Compiler
Attributes
- See also
-
http://stackoverflow.com/questions/9160001/how-to-profile-methods-in-scala Executes the block of code multiple times for better resolution and accuracy, throwing the slowest execution to improve consistency (e.g., may be slow due to GC).
The timerTest main function tests the timer methods. Due to the short execution time of the quadraticEq method, the amplify value should be 1000 to 1000000.
The timerTest main function tests the timer methods. Due to the short execution time of the quadraticEq method, the amplify value should be 1000 to 1000000.
runMain scalation.timerTest
Attributes
Return the type of an object as string, e.g., "Double".
Return the type of an object as string, e.g., "Double".
Value parameters
- o
-
the object whose type is sought
Attributes
Determine by the form of a string its likely domain using regular expression matching, returning a character: Double | Int | Long | String | TimeNum
Determine by the form of a string its likely domain using regular expression matching, returning a character: Double | Int | Long | String | TimeNum
Value parameters
- str
-
the type un-differentiated string whose domain is sought
Attributes
- See also
The unicodeTest main function is used to the Unicode object. Show operators, special characters, and Greek letters.
The unicodeTest main function is used to the Unicode object. Show operators, special characters, and Greek letters.
runMain scalation.unicodeTest
Attributes
The unicodeTest2 main function is used to the Unicode object. Show subscripts and superscripts.
The unicodeTest2 main function is used to the Unicode object. Show subscripts and superscripts.
runMain scalation.unicodeTest2
Attributes
The unicodeTest3 main function is used to the Unicode object. Show Scala 3 operators. First character determines precedence: The first character of an operator is the primary factor in determining its precedence. Letters vs. symbols: Operators that start with letters have the lowest precedence, while those with symbols like *, /, and % have higher precedence.
The unicodeTest3 main function is used to the Unicode object. Show Scala 3 operators. First character determines precedence: The first character of an operator is the primary factor in determining its precedence. Letters vs. symbols: Operators that start with letters have the lowest precedence, while those with symbols like *, /, and % have higher precedence.
Attributes
- See also
-
docs.scala-lang.org/tour/operators.html
www.geeksforgeeks.org/scala/operators-precedence-in-scala/
runMain scalation.unicodeTest3
The valueTypeTest main function is used to test the ValueType type.
The valueTypeTest main function is used to test the ValueType type.
runMain scalation.valueTypeTest
Attributes
Concrete fields
Universal symbol for the ? character (e.g., meaning all rows of column 2 in x(?, 2) for matrix x)
Universal symbol for the ? character (e.g., meaning all rows of column 2 in x(?, 2) for matrix x)
Attributes
Base directory for ScalaTion (pick one, comment out the rest)
Base directory for ScalaTion (pick one, comment out the rest)
Attributes
File-name extension for CSV data files
File-name extension for CSV data files
Attributes
File system path for input/output data directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
File system path for input/output data directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
Attributes
The number of hours in one day
The number of hours in one day
Attributes
Smallest double such that 1.0 + EPSILON != 1.0, slightly above 2^-53. Also, known as the "machine epsilon".
Smallest double such that 1.0 + EPSILON != 1.0, slightly above 2^-53. Also, known as the "machine epsilon".
Attributes
- See also
The number of minutes in one hour
The number of minutes in one hour
Attributes
File-name extension for JSON data files
File-name extension for JSON data files
Attributes
File system path for log (log/file output) directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
File system path for log (log/file output) directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
Attributes
Largest positive 32-bit integer value (2147483647 = 2^31-1)
Largest positive 32-bit integer value (2147483647 = 2^31-1)
Attributes
Largest positive finite value of type double, 2^1023
Largest positive finite value of type double, 2^1023
Attributes
The number of seconds in one minute
The number of seconds in one minute
Attributes
The most negative 32-bit integer value (-2147483648 = -2^31)
The most negative 32-bit integer value (-2147483648 = -2^31)
Attributes
Smallest positive normal value of type double, 2^-1022 (retains full precision). Also, the smallest double such that 1.0 / 'SAFE_MIN' does not overflow.
Smallest positive normal value of type double, 2^-1022 (retains full precision). Also, the smallest double such that 1.0 / 'SAFE_MIN' does not overflow.
Attributes
The number of millisecond (10-3) per second
The number of millisecond (10-3) per second
Attributes
Special value representing negative infinity: 1111111111110...0 Ex: -1.0 / 0.0
Special value representing negative infinity: 1111111111110...0 Ex: -1.0 / 0.0
Attributes
- See also
Indicators of missing/illegal values per datatype
Indicators of missing/illegal values per datatype
Attributes
The number of nanoseconds (10-9) per millisecond
The number of nanoseconds (10-9) per millisecond
Attributes
Special value representing positive infinity: 0111111111110...0 Ex: 1.0 / 0.0
Special value representing positive infinity: 0111111111110...0 Ex: 1.0 / 0.0
Attributes
- See also
The number π/2 (90 degrees) (needed in common calculations)
The number π/2 (90 degrees) (needed in common calculations)
Attributes
The number of units in one second Use 1.0 to make SECOND the base unit, 1.0 / 60.0 to make MINUTE the base unit, etc.
The number of units in one second Use 1.0 to make SECOND the base unit, 1.0 / 60.0 to make MINUTE the base unit, etc.
Attributes
- See also
-
TimeNumfor alternative definitions
The file path separation character: '/' for Linux/Mac, '' for Windows Use either 'SEP' or '⁄' for portability, i.e., do not use '/' or ''.
The file path separation character: '/' for Linux/Mac, '' for Windows Use either 'SEP' or '⁄' for portability, i.e., do not use '/' or ''.
Attributes
File-name extension for serialized tables FIX: investigate using more efficient serialization, e.g.,
File-name extension for serialized tables FIX: investigate using more efficient serialization, e.g.,
Attributes
- See also
-
github.com/EsotericSoftware/kryo
The token/element separation character (',' for CSV)
The token/element separation character (',' for CSV)
Attributes
File system path for src (source code) directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
File system path for src (source code) directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
Attributes
File system path for database storage directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
File system path for database storage directory Use 'SCALATION_HOME' environment variable or else BASE directory "."
Attributes
Default tolerance should be much larger than the "machine epsilon". Application dependent => redefine as needed per application.
Default tolerance should be much larger than the "machine epsilon". Application dependent => redefine as needed per application.
Attributes
The number of days in one week
The number of days in one week
Attributes
The number 2π (needed in common calculations)
The number 2π (needed in common calculations)
Attributes
The number 2/π (needed in common calculations)
The number 2/π (needed in common calculations)
Attributes
The value of log 2
The value of log 2
Attributes
The number srqt 2π (needed in common calculations)
The number srqt 2π (needed in common calculations)
Attributes
The number srqt 2/π (needed in common calculations)
The number srqt 2/π (needed in common calculations)
Attributes
Givens
Givens
Given instance to be used with methods such as sorted to define the ordering of elements. FIX - should be implicit in "sorted (using timeNumOrd)"
Given instance to be used with methods such as sorted to define the ordering of elements. FIX - should be implicit in "sorted (using timeNumOrd)"
Attributes
Extensions
Extensions
Add the <<= operator as an extension method to java.time.Instant.
Add the <<= operator as an extension method to java.time.Instant.
Attributes
Extend Boolean to include an and, or, not, xor.
Extend Boolean to include an and, or, not, xor.
Attributes
Extend Boolean to include an and, or, not, xor.
Extend Boolean to include an and, or, not, xor.
Attributes
Extend Boolean to include an and, or, not, xor.
Extend Boolean to include an and, or, not, xor.
Attributes
Extend Boolean to include an and, or, not, xor.
Extend Boolean to include an and, or, not, xor.
Attributes
Return whether predicate p holds for all elements of set x.
Return whether predicate p holds for all elements of set x.
Value parameters
- p
-
the predicate to check
Attributes
Return whether there exists at least one element of set x for which predicate p holds.
Return whether there exists at least one element of set x for which predicate p holds.
Value parameters
- p
-
the predicate to check
Attributes
Return whether there does not exists at least one element of set x for which predicate p holds.
Return whether there does not exists at least one element of set x for which predicate p holds.
Value parameters
- p
-
the predicate to check
Attributes
Return the intersetion of set x and set y (x & y).
Return the intersetion of set x and set y (x & y).
Value parameters
- y
-
the other set
Attributes
Return the union of set x and set y (x | y).
Return the union of set x and set y (x | y).
Value parameters
- y
-
the other set
Attributes
Return whether set x is a proper subset of set y.
Return whether set x is a proper subset of set y.
Value parameters
- y
-
the other set
Attributes
Return whether set x is not a proper subset of set y.
Return whether set x is not a proper subset of set y.
Value parameters
- y
-
the other set
Attributes
Return whether set x is a subset of set y.
Return whether set x is a subset of set y.
Value parameters
- y
-
the other set
Attributes
Return whether set x is not a subset of set y.
Return whether set x is not a subset of set y.
Value parameters
- y
-
the other set
Attributes
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Attributes
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Attributes
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Attributes
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Attributes
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Attributes
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Attributes
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Attributes
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Attributes
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Extend Int to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out.
Attributes
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Attributes
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Attributes
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Attributes
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Attributes
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Attributes
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Attributes
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Extend String to include an exponentiation operator (~^), nearly equal (=~), ≤, ≥, ≠, and in/out, as well operators for numeric types. Use '.mkDouble' instead of '.toDouble'.
Attributes
The < extension method determines whether x < y.
The < extension method determines whether x < y.
Attributes
The <= extension method determines whether x <= y.
The <= extension method determines whether x <= y.
Attributes
The > extension method determines whether x > y.
The > extension method determines whether x > y.
Attributes
The >= extension method determines whether x >= y.
The >= extension method determines whether x >= y.
Attributes
The toDouble extension method converts a ValueType to a Double.
The toDouble extension method converts a ValueType to a Double.
Attributes
The toInt extension method converts a ValueType to an Int.
The toInt extension method converts a ValueType to an Int.
Attributes
The toLong extension method converts a ValueType to an Long.
The toLong extension method converts a ValueType to an Long.