object Scaling extends Scaling
- Alphabetic
- By Inheritance
- Scaling
- Scaling
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def computeScaleDelta(scores: Array[Double]): Int
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).
- Definition Classes
- Scaling
- def determineScale(score: Double, oldScale: Int): Int
- Definition Classes
- Scaling
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def scaleArray(scores: Array[Double], currentScale: Int): Int
Ensures that the max double is between (2**scaleConstant,2**-scaleConstant), scaling the array as necessary.
Ensures that the max double is between (2**scaleConstant,2**-scaleConstant), scaling the array as necessary.
- returns
newScale
- Definition Classes
- Scaling
- def scaleArrayToScale(scores: Array[Double], currentScale: Int, targetScale: Int): Unit
- Definition Classes
- Scaling
- val scaleConstant: Int
the largest (log) power of two we want to deal with
- def scaleValue(score: Double, currentScale: Int, targetScale: Int): Double
Converts the scaled value into "normal" space
Converts the scaled value into "normal" space
- Definition Classes
- Scaling
- def sumArrays(src: Array[Double], srcScale: Int, dest: Array[Double], destScale: Int): Int
Sums
src
intodest
assuming they're at different scales.Sums
src
intodest
assuming they're at different scales.src
may be longer thandest
, which is useful for allocating a large work buffer.- returns
the new scale
- Definition Classes
- Scaling
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLogSpace(score: Double, currentScale: Int): Double
- Definition Classes
- Scaling
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unscaleValue(score: Double, currentScale: Int): Double
Converts the scaled value into "normal" space
Converts the scaled value into "normal" space
- Definition Classes
- Scaling
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])