Parameters for a uniform density function.
More...
#include <density.h>
List of all members.
Public Member Functions |
| Uniform_params (float min=0, float max=0) throw (jwscxx::base::Arg_error) |
| Creates a set of parameters for a uniform density function.
|
virtual | ~Uniform_params () |
| Destructor.
|
virtual void | set (float min, float max) throw (jwscxx::base::Arg_error) |
| Sets the density parameters.
|
float | get_min () const |
| Returns the minimum value parameter.
|
float | get_max () const |
| Returns the maximum value parameter.
|
Protected Attributes |
float | min |
| Minimum value.
|
float | max |
| Maximum value.
|
Friends |
std::ostream & | operator<< (std::ostream &, const Uniform_params &) |
| Prints this Uniform_params to an output stream.
|
std::istream & | operator>> (std::istream &, Uniform_params &) |
| Reads this Uniform_params into an input stream.
|
Detailed Description
Parameters for a uniform density function.
Definition at line 65 of file density.h.
Constructor & Destructor Documentation
Creates a set of parameters for a uniform density function.
- Parameters:
-
min | Minimum value. |
max | Maximum value. |
- Exceptions:
-
Definition at line 66 of file density.cpp.
virtual Density::Uniform_params::~Uniform_params |
( |
| ) |
[inline, virtual] |
Member Function Documentation
Sets the density parameters.
- Parameters:
-
min | Minimum value. |
max | Maximum value. |
- Exceptions:
-
Definition at line 78 of file density.cpp.
float Density::Uniform_params::get_min |
( |
| ) |
const [inline] |
Returns the minimum value parameter.
Definition at line 85 of file density.h.
float Density::Uniform_params::get_max |
( |
| ) |
const [inline] |
Returns the maximum value parameter.
Definition at line 89 of file density.h.
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
, |
|
|
const Uniform_params & |
|
|
) |
| [friend] |
std::istream& operator>> |
( |
std::istream & |
, |
|
|
Uniform_params & |
|
|
) |
| [friend] |
Member Data Documentation
The documentation for this class was generated from the following files: