trait Moments[+A] extends AnyRef
This class adds moment calculation methods to random variables.
- A
the concrete type of the random variable.
- Alphabetic
- By Inheritance
- Moments
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
expectation(samples: Int = defaultNbSamples): Double
Computes the expectation of the random variable.
Computes the expectation of the random variable.
- samples
the number of samples to compute the expectation
- returns
the expected value of the random variable
-
abstract
def
logExpectation(samples: Int = defaultNbSamples): Double
Computes the logarithm of the expectation of the random variable.
Computes the logarithm of the expectation of the random variable.
This method is more precise than expectation when summing small values. Note that the random variable needs to be positive.
- samples
the number of samples to compute the expectation
- returns
the expected value of the random variable
-
abstract
def
variance(samples: Int = defaultNbSamples): Double
Computes the variance of the random variable.
Computes the variance of the random variable.
- samples
the number of samples to compute the variance
- returns
the variance of the random variable
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
expectation: Double
See expectation.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
logExpectation: Double
See logExpectation.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
std: Double
See std.
-
def
std(samples: Int = defaultNbSamples): Double
Computes the standard deviation of the random variable.
Computes the standard deviation of the random variable.
- samples
the number of samples to compute the standard deviation
- returns
the standard deviation of the random variable
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
variance: Double
See variance.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )