smile.infrastructure.MathUtils
Provides utility mathematical functions for operations commonly used throughout the library.
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Divides a length into a number of positions.
Divides a length into a number of positions.
Value parameters
-
lengthToDivide
-
The length to divide
-
numberOfDivisions
-
The number of divisions
Attributes
-
Returns
-
A sequence of positions
Sorts two numbers in ascending order.
Sorts two numbers in ascending order.
Value parameters
-
a
-
The first number.
-
b
-
The second number.
Attributes
-
Returns
-
A tuple with the smaller number first and the larger number second.