Dirichlet

object Dirichlet

Provides several defaults for Dirichlets, one for Arrays and one for Counters.

Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

class ExpFam[T, I](exemplar: T)(implicit space: MutableFiniteCoordinateField[T, I, Double]) extends ExponentialFamily[Dirichlet[T, I], T]

Value members

Concrete methods

def apply[T](c: Counter[T, Double])(implicit rand: RandBasis): Dirichlet[Counter[T, Double], T]

Creates a new Dirichlet with pseudocounts equal to the observed counts.

Creates a new Dirichlet with pseudocounts equal to the observed counts.

def apply(arr: Array[Double])(implicit rand: RandBasis): Dirichlet[DenseVector[Double], Int]
def sym(alpha: Double, k: Int)(implicit rand: RandBasis): Dirichlet[DenseVector[Double], Int]

Creates a new symmetric Dirichlet of dimension k

Creates a new symmetric Dirichlet of dimension k