Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
bsta_beta< T > Class Template Reference

#include <bsta_beta.h>

Inheritance diagram for bsta_beta< T >:
Inheritance graph
[legend]

List of all members.

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.
alpha () const
beta () const
void set_alpha_beta (T alpha, T beta)
prob_density (T x) const
 pre: x should be in [0,1].
cum_dist_funct (T x) const
distance (T x) const
mean () const
var () const

Static Public Member Functions

static bool bsta_beta_from_moments (T mean, T var, T &alpha, T &beta)

Private Attributes

alpha_
beta_

Detailed Description

template<class T>
class bsta_beta< T >

Definition at line 20 of file bsta_beta.h.


Member Typedef Documentation

template<class T >
typedef vector_type bsta_distribution< T, 1 >::field_type [inherited]

for compatibility with vpdl/vpdt.

Definition at line 47 of file bsta_distribution.h.

template<class T >
typedef T bsta_distribution< T, 1 >::math_type [inherited]

The type used for calculations.

Definition at line 42 of file bsta_distribution.h.

template<class T >
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.


Member Enumeration Documentation

template<class T >
anonymous enum [inherited]

The dimension of the distribution.

Enumerator:
dimension 

Definition at line 40 of file bsta_distribution.h.


Constructor & Destructor Documentation

template<class T>
bsta_beta< T >::bsta_beta ( ) [inline]

Definition at line 24 of file bsta_beta.h.

template<class T>
bsta_beta< T >::bsta_beta ( alpha,
beta 
) [inline]

pre: alpha>0 and beta>0.

Definition at line 27 of file bsta_beta.h.

template<class T >
bsta_beta< T >::bsta_beta ( vcl_vector< T >  x)

constructs from a set of sample values.

Definition at line 24 of file bsta_beta.txx.


Member Function Documentation

template<class T>
T bsta_beta< T >::alpha ( ) const [inline]

Definition at line 35 of file bsta_beta.h.

template<class T>
T bsta_beta< T >::beta ( ) const [inline]

Definition at line 37 of file bsta_beta.h.

template<class T >
bool bsta_beta< T >::bsta_beta_from_moments ( mean,
var,
T &  alpha,
T &  beta 
) [static]

Definition at line 48 of file bsta_beta.txx.

template<class T >
T bsta_beta< T >::cum_dist_funct ( x) const

Definition at line 200 of file bsta_beta.txx.

template<class T >
T bsta_beta< T >::distance ( x) const

Definition at line 187 of file bsta_beta.txx.

template<class T>
T bsta_beta< T >::mean ( ) const [inline]

Definition at line 54 of file bsta_beta.h.

template<class T >
T bsta_beta< T >::prob_density ( 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.

template<class T>
void bsta_beta< T >::set_alpha_beta ( alpha,
beta 
) [inline]

Definition at line 39 of file bsta_beta.h.

template<class T>
T bsta_beta< T >::var ( ) const [inline]

Definition at line 56 of file bsta_beta.h.


Member Data Documentation

template<class T>
T bsta_beta< T >::alpha_ [private]

Definition at line 59 of file bsta_beta.h.

template<class T>
T bsta_beta< T >::beta_ [private]

Definition at line 60 of file bsta_beta.h.


The documentation for this class was generated from the following files: