MapTryDistribution

probability_monad.MapTryDistribution
class MapTryDistribution[A, B](fa: Distribution[A], f: Try[A] => B) extends Distribution[B]

Attributes

Graph
Supertypes
trait Distribution[B]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def get: B

Attributes

Definition Classes
Distribution

Inherited methods

def *(x: B)(implicit n: Numeric[B]): Distribution[A]

Attributes

Inherited from:
Distribution
def *(d: Distribution[B])(implicit n: Numeric[B]): Distribution[A]

Attributes

Inherited from:
Distribution
def +(x: B)(implicit n: Numeric[B]): Distribution[A]

Attributes

Inherited from:
Distribution
def +(d: Distribution[B])(implicit n: Numeric[B]): Distribution[A]

Attributes

Inherited from:
Distribution
def -(x: B)(implicit n: Numeric[B]): Distribution[A]

Attributes

Inherited from:
Distribution
def -(d: Distribution[B])(implicit n: Numeric[B]): Distribution[A]

Attributes

Inherited from:
Distribution
def /(x: B)(implicit toDouble: B <:< Double): Distribution[Double]

Attributes

Inherited from:
Distribution
def /(d: Distribution[B])(implicit toDouble: B <:< Double): Distribution[Double]

Attributes

Inherited from:
Distribution
def bucketedHist(min: Double, max: Double, nbuckets: Int, roundDown: Boolean)(implicit ord: Ordering[B], toDouble: B <:< Double): Unit

Attributes

Inherited from:
Distribution
def bucketedHist(buckets: Int)(implicit ord: Ordering[B], toDouble: B <:< Double): Unit

Attributes

Inherited from:
Distribution
def ev(implicit toDouble: B <:< Double): Double

Attributes

Inherited from:
Distribution
def filter(pred: B => Boolean): Distribution[A]

Attributes

Inherited from:
Distribution
def flatMap[B](f: B => Distribution[B]): Distribution[B]

Attributes

Inherited from:
Distribution
def given(pred: B => Boolean): Distribution[A]

Attributes

Inherited from:
Distribution
def hist(implicit ord: Ordering[B], d: B <:< Double): Unit

Attributes

Inherited from:
Distribution
def histData: Map[A, Double]

Attributes

Inherited from:
Distribution
def kurtosis(implicit toDouble: B <:< Double): Double

Attributes

Inherited from:
Distribution
def map[B](f: B => B): Distribution[B]

Attributes

Inherited from:
Distribution
def markov(pred: B => Boolean)(f: B => Distribution[B]): Distribution[A]

Attributes

Inherited from:
Distribution
final def markov(n: Int)(f: B => Distribution[B]): Distribution[A]

Attributes

Inherited from:
Distribution
def mean(implicit toDouble: B <:< Double): Double

Attributes

Inherited from:
Distribution
def posterior[B](experiment: B => Distribution[B])(observed: B => Boolean): Distribution[A]

Attributes

Inherited from:
Distribution
def pr(pred: B => Boolean, given: B => Boolean, samples: Int): Double

Attributes

Inherited from:
Distribution
def repeat(n: Int): Distribution[List[A]]

Attributes

Inherited from:
Distribution
def sample(n: Int): List[A]

Attributes

Inherited from:
Distribution
def samplePar(n: Int): ParSeq[A]

Attributes

Inherited from:
Distribution
def skewness(implicit toDouble: B <:< Double): Double

Attributes

Inherited from:
Distribution
def stdev(implicit toDouble: B <:< Double): Double

Attributes

Inherited from:
Distribution
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Distribution -> Any
Inherited from:
Distribution
def until(pred: List[B] => Boolean): Distribution[List[A]]

Attributes

Inherited from:
Distribution
def variance(implicit toDouble: B <:< Double): Double

Attributes

Inherited from:
Distribution
def withFilter(pred: B => Boolean): Distribution[A]

Attributes

Inherited from:
Distribution
def zip[B](d: Distribution[B]): Distribution[(A, B)]

Attributes

Inherited from:
Distribution
def zipWith[B, C](d: Distribution[B])(f: (B, B) => C): Distribution[C]

Attributes

Inherited from:
Distribution