Probability

com.phasmidsoftware.lascala.values.Probability
See theProbability companion object
trait Probability extends () => Double

This trait defines the operations of a Probability

Attributes

Companion
object
Graph
Supertypes
trait () => Double
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def !: Probability

Method to form the complement of this probability

Method to form the complement of this probability

Attributes

Returns

the probability whose numerical value is 1 - this

Method to form the conjunction (product) of this and another probability.

Method to form the conjunction (product) of this and another probability.

Value parameters

p

the other Probability

Attributes

Returns

the conjunction of this and p

def *[N : Fractional](x: N): Probability

Method to factor this probability by a scalar value

Method to factor this probability by a scalar value

Attributes

Returns

this probability factored by x

Method to form the disjunction (sum) of this and another probability. Note that the two probability must of independent events for this to yield the correct answer

Method to form the disjunction (sum) of this and another probability. Note that the two probability must of independent events for this to yield the correct answer

Value parameters

p

the other Probability

Attributes

Returns

the disjunction of this and p

Inherited methods

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
Function0 -> Any
Inherited from:
Function0

Inherited and Abstract methods

def apply(): Double

Applies the body of this function to the arguments.

Applies the body of this function to the arguments.

Attributes

Returns

the result of function application.

Inherited from:
Function0