Probability which is based on a Double
Value parameters
- p
-
the probability as a Double
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Probabilitytrait () => Doubleclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
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
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
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.
- Definition Classes
-
Function0
Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.
Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.
Attributes
- Definition Classes
-
Equals -> Any
Calculates a hash code value for the object.
Calculates a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.
Attributes
- Returns
-
the hash code value for this object.
- Definition Classes
-
Any
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
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
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