Scaling

object Scaling extends Scaling
Companion:
class
trait Scaling
class Object
trait Matchable
class Any
Scaling.type

Value members

Inherited methods

Computes the log power of two we'd need to scale by so that the max double is between (2 ** scaleConstant, 2 ** -scaleConstant).

Computes the log power of two we'd need to scale by so that the max double is between (2 ** scaleConstant, 2 ** -scaleConstant).

Inherited from:
Scaling
def determineScale(score: Double, oldScale: Int): Int
Inherited from:
Scaling
def scaleArray(scores: Array[Double], currentScale: Int): Int

Ensures that the max double is between (2scaleConstant,2-scaleConstant), scaling the array as necessary.

Ensures that the max double is between (2scaleConstant,2-scaleConstant), scaling the array as necessary.

Returns:

newScale

Inherited from:
Scaling
def scaleArrayToScale(scores: Array[Double], currentScale: Int, targetScale: Int): Unit
Inherited from:
Scaling
def scaleValue(score: Double, currentScale: Int, targetScale: Int): Double

Converts the scaled value into "normal" space

Converts the scaled value into "normal" space

Inherited from:
Scaling
def sumArrays(src: Array[Double], srcScale: Int, dest: Array[Double], destScale: Int): Int

Sums src into dest assuming they're at different scales. src may be longer than dest, which is useful for allocating a large work buffer.

Sums src into dest assuming they're at different scales. src may be longer than dest, which is useful for allocating a large work buffer.

Returns:

the new scale

Inherited from:
Scaling
def toLogSpace(score: Double, currentScale: Int): Double
Inherited from:
Scaling
def unscaleValue(score: Double, currentScale: Int): Double

Converts the scaled value into "normal" space

Converts the scaled value into "normal" space

Inherited from:
Scaling

Concrete fields