package util
Utility functions.
- Alphabetic
- By Inheritance
- util
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
-
def
pdist(data: Array[Array[Double]], half: Boolean = true): Array[Array[Double]]
Returns the pairwise Euclidean distance matrix.
Returns the pairwise Euclidean distance matrix.
- data
the data set.
- half
if true, only the lower half of matrix is allocated to save space.
- returns
the lower half of proximity matrix.
-
def
proximity[T](data: Array[T], dist: Distance[T], half: Boolean = true): Array[Array[Double]]
Returns the proximity matrix of a dataset for given distance function.
Returns the proximity matrix of a dataset for given distance function.
- data
the data set.
- dist
the distance function.
- half
if true, only the lower half of matrix is allocated to save space.
- returns
the lower half of proximity matrix.
-
implicit
def
toJavaBiFunction[T, U, R](f: (T, U) ⇒ R): BiFunction[T, U, R]
Wraps Scala lambda as Java's.
-
implicit
def
toJavaFunction[T, R](f: (T) ⇒ R): Function[T, R]
Wraps Scala lambda as Java's.
-
object
time
Measure running time of a function/block
High level Smile operators in Scala.