All Downloads are FREE. Search and download functionalities are using the official Maven repository.

breeze.inference.Factor.scala Maven / Gradle / Ivy

package breeze.inference

trait Factor[F] { this: F =>

  /** Pointwise multiplication */
  def *(f: F):F
  /** Pointwise division */
  def /(f: F):F

  /** May be infinite */
  def logPartition: Double

  def isConvergedTo(f: F, diff: Double=1E-4):Boolean
}


trait ExpFactor[F] extends Factor[F] { this: F =>
  /** Exponentiation */
  def **(f: Double):F
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy