#include <bsta_beta.h>
Public Types | |
enum | { dimension = 1 } |
The dimension of the distribution. More... | |
typedef T | math_type |
The type used for calculations. | |
typedef T | vector_type |
The type used for a n-dimensional vector of math types. | |
typedef vector_type | field_type |
for compatibility with vpdl/vpdt. | |
Public Member Functions | |
bsta_beta () | |
bsta_beta (T alpha, T beta) | |
pre: alpha>0 and beta>0. | |
bsta_beta (vcl_vector< T > x) | |
constructs from a set of sample values. | |
T | alpha () const |
T | beta () const |
void | set_alpha_beta (T alpha, T beta) |
T | prob_density (T x) const |
pre: x should be in [0,1]. | |
T | cum_dist_funct (T x) const |
T | distance (T x) const |
T | mean () const |
T | var () const |
Static Public Member Functions | |
static bool | bsta_beta_from_moments (T mean, T var, T &alpha, T &beta) |
Private Attributes | |
T | alpha_ |
T | beta_ |
Definition at line 20 of file bsta_beta.h.
typedef vector_type bsta_distribution< T, 1 >::field_type [inherited] |
for compatibility with vpdl/vpdt.
Definition at line 47 of file bsta_distribution.h.
typedef T bsta_distribution< T, 1 >::math_type [inherited] |
The type used for calculations.
Definition at line 42 of file bsta_distribution.h.
typedef T bsta_distribution< T, 1 >::vector_type [inherited] |
The type used for a n-dimensional vector of math types.
Definition at line 44 of file bsta_distribution.h.
anonymous enum [inherited] |
The dimension of the distribution.
Definition at line 40 of file bsta_distribution.h.
Definition at line 24 of file bsta_beta.h.
pre: alpha>0 and beta>0.
Definition at line 27 of file bsta_beta.h.
constructs from a set of sample values.
Definition at line 24 of file bsta_beta.txx.
T bsta_beta< T >::alpha | ( | ) | const [inline] |
Definition at line 35 of file bsta_beta.h.
T bsta_beta< T >::beta | ( | ) | const [inline] |
Definition at line 37 of file bsta_beta.h.
bool bsta_beta< T >::bsta_beta_from_moments | ( | T | mean, |
T | var, | ||
T & | alpha, | ||
T & | beta | ||
) | [static] |
Definition at line 48 of file bsta_beta.txx.
T bsta_beta< T >::cum_dist_funct | ( | T | x | ) | const |
Definition at line 200 of file bsta_beta.txx.
T bsta_beta< T >::distance | ( | T | x | ) | const |
Definition at line 187 of file bsta_beta.txx.
T bsta_beta< T >::mean | ( | ) | const [inline] |
Definition at line 54 of file bsta_beta.h.
T bsta_beta< T >::prob_density | ( | T | x | ) | const |
pre: x should be in [0,1].
pre: x should be in [0,1] Otherwise, zero is returned.
Definition at line 163 of file bsta_beta.txx.
void bsta_beta< T >::set_alpha_beta | ( | T | alpha, |
T | beta | ||
) | [inline] |
Definition at line 39 of file bsta_beta.h.
T bsta_beta< T >::var | ( | ) | const [inline] |
Definition at line 56 of file bsta_beta.h.
Definition at line 59 of file bsta_beta.h.
Definition at line 60 of file bsta_beta.h.