Public Member Functions | Private Attributes
bsta_weibull_cost_function Class Reference

#include <bsta_fit_weibull.h>

List of all members.

Public Member Functions

 bsta_weibull_cost_function ()
 Default constructor.
 bsta_weibull_cost_function (double mean, double std_dev)
 Construct with a specified number of unknowns.
virtual ~bsta_weibull_cost_function ()
virtual double f (vnl_vector< double > const &x)
 The main function. Given the parameter vector x, compute the value of f(x).
virtual void gradf (vnl_vector< double > const &x, vnl_vector< double > &gradient)
 Calculate the gradient of f at parameter vector x.
double mean () const
 sample mean.
double std_dev () const
 sample standard deviation.
double lambda (double k) const
 Weibull scale parameter from sample mean and k.

Private Attributes

double mean_
double std_dev_

Detailed Description

Definition at line 20 of file bsta_fit_weibull.h.


Constructor & Destructor Documentation

bsta_weibull_cost_function::bsta_weibull_cost_function ( ) [inline]

Default constructor.

Definition at line 24 of file bsta_fit_weibull.h.

bsta_weibull_cost_function::bsta_weibull_cost_function ( double  mean,
double  std_dev 
) [inline]

Construct with a specified number of unknowns.

Definition at line 28 of file bsta_fit_weibull.h.

virtual bsta_weibull_cost_function::~bsta_weibull_cost_function ( ) [inline, virtual]

Definition at line 31 of file bsta_fit_weibull.h.


Member Function Documentation

double bsta_weibull_cost_function::f ( vnl_vector< double > const &  x) [virtual]

The main function. Given the parameter vector x, compute the value of f(x).

Definition at line 21 of file bsta_fit_weibull.cxx.

void bsta_weibull_cost_function::gradf ( vnl_vector< double > const &  x,
vnl_vector< double > &  gradient 
) [virtual]

Calculate the gradient of f at parameter vector x.

Definition at line 32 of file bsta_fit_weibull.cxx.

double bsta_weibull_cost_function::lambda ( double  k) const

Weibull scale parameter from sample mean and k.

Definition at line 50 of file bsta_fit_weibull.cxx.

double bsta_weibull_cost_function::mean ( ) const [inline]

sample mean.

Definition at line 39 of file bsta_fit_weibull.h.

double bsta_weibull_cost_function::std_dev ( ) const [inline]

sample standard deviation.

Definition at line 42 of file bsta_fit_weibull.h.


Member Data Documentation

Definition at line 48 of file bsta_fit_weibull.h.

Definition at line 49 of file bsta_fit_weibull.h.


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