Public Member Functions | Private Attributes
bsta_fit_weibull< T > Class Template Reference

#include <bsta_fit_weibull.h>

List of all members.

Public Member Functions

 bsta_fit_weibull ()
 bsta_fit_weibull (bsta_weibull_cost_function *wcf)
void set_cost_function (bsta_weibull_cost_function *wcf)
bool init (T &k)
 provides an initial guess for k.
void solve (T &k)
 solves for k that matches the sample mean and variance ratio.
residual () const
 the residual after solving.
lambda (T const &k) const
 the Weibull scale parameter.

Private Attributes

bsta_weibull_cost_functionwcf_
residual_

Detailed Description

template<class T>
class bsta_fit_weibull< T >

Definition at line 53 of file bsta_fit_weibull.h.


Constructor & Destructor Documentation

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

Definition at line 56 of file bsta_fit_weibull.h.

template<class T >
bsta_fit_weibull< T >::bsta_fit_weibull ( bsta_weibull_cost_function wcf) [inline]

Definition at line 57 of file bsta_fit_weibull.h.


Member Function Documentation

template<class T >
bool bsta_fit_weibull< T >::init ( T &  k) [inline]

provides an initial guess for k.

Definition at line 63 of file bsta_fit_weibull.h.

template<class T >
T bsta_fit_weibull< T >::lambda ( T const &  k) const [inline]

the Weibull scale parameter.

Definition at line 93 of file bsta_fit_weibull.h.

template<class T >
T bsta_fit_weibull< T >::residual ( ) const [inline]

the residual after solving.

Definition at line 90 of file bsta_fit_weibull.h.

template<class T >
void bsta_fit_weibull< T >::set_cost_function ( bsta_weibull_cost_function wcf) [inline]

Definition at line 59 of file bsta_fit_weibull.h.

template<class T >
void bsta_fit_weibull< T >::solve ( T &  k) [inline]

solves for k that matches the sample mean and variance ratio.

Definition at line 80 of file bsta_fit_weibull.h.


Member Data Documentation

template<class T >
T bsta_fit_weibull< T >::residual_ [private]

Definition at line 102 of file bsta_fit_weibull.h.

template<class T >
bsta_weibull_cost_function* bsta_fit_weibull< T >::wcf_ [private]

Definition at line 101 of file bsta_fit_weibull.h.


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