Alternaria
fit cylinders and ellipsoids to fungus
Alternaria_density Class Reference

Parameters for density functions over an Alternaria. More...

#include <alternaria_model.h>

Collaboration diagram for Alternaria_density:

List of all members.

Public Member Functions

 Alternaria_density () throw (jwscxx::base::Arg_error)
 Constructs an Alternaria_density initialized with default values.
virtual ~Alternaria_density ()
 Deletes this Alternaria_density.
float get_num_levels_p () const
 Returns the number of levels density parameter.
float get_spore_p () const
 Returns the probability of creating a Spore.
float get_apical_hypha_p () const
 Returns the probability of creating a Apical_hypha.
float get_lateral_hypha_1_p () const
 Returns the probability of creating a Lateral_hypha at level 1.
float get_lateral_hypha_n_p () const
 Returns the probability of creating a Lateral_hypha at level > 1.
const Density::Uniform_paramsget_c_1 () const
 Gets the Alternaria_density::c_1 parameters.
void set_num_levels_p (float p) throw (jwscxx::base::Arg_error)
 Sets the number of levels density parameters.
void set_structure_p (float spore_p, float apical_hypha_p, float lateral_hypha_1_p, float lateral_hypha_n_p) throw (jwscxx::base::Arg_error)
 Sets the Structure creation probabilities.
void set_c_1 (float min, float max) throw (jwscxx::base::Arg_error)
 Sets the Alternaria_density::c_1 parameters.
float sample_c_1 () const
 Creates a random Alternaria::c_1.
virtual class Alternariasample (size_t N, float centroid_x, float centroid_y, float centroid_z, float theta, float psi, size_t base_level, const Spore_density *spore_d, const Apical_hypha_density *apical_hypha_d, const Lateral_hypha_density *lateral_hypha_1_d, const Lateral_hypha_density *lateral_hypha_n_d) const throw (jwscxx::base::Arg_error)
 Creates a random Alternaria.

Protected Member Functions

void generate_structure (Alternaria *alternaria, size_t N, float centroid_x, float centroid_y, float centroid_z) const throw (jwscxx::base::Arg_error)
 Generates the structure in an Alternaria.

Protected Attributes

float num_levels_p
 Geometric density parameter for the number of levels in Alternaria.
float spore_p
 Probability of creating an Spore.
float apical_hypha_p
 Probability of creating an Apical_hypha.
float lateral_hypha_1_p
 Probability of creating a Lateral_hypha at level 1.
float lateral_hypha_n_p
 Probability of creating a Lateral_hypha at level > 1.
Density::Uniform_params c_1
 Uniform density parameters for the constant C_1.

Detailed Description

Parameters for density functions over an Alternaria.

Definition at line 78 of file alternaria_model.h.


Constructor & Destructor Documentation

Alternaria_density::Alternaria_density ( ) throw (jwscxx::base::Arg_error)

Constructs an Alternaria_density initialized with default values.

Initializes with default values.

Exceptions:
jwscxx::base::Arg_errorInvalid default density parameter value.

Definition at line 117 of file alternaria_model.cpp.

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

Deletes this Alternaria_density.

Definition at line 90 of file alternaria_model.h.


Member Function Documentation

float Alternaria_density::get_num_levels_p ( ) const [inline]

Returns the number of levels density parameter.

Definition at line 94 of file alternaria_model.h.

float Alternaria_density::get_spore_p ( ) const [inline]

Returns the probability of creating a Spore.

Definition at line 98 of file alternaria_model.h.

float Alternaria_density::get_apical_hypha_p ( ) const [inline]

Returns the probability of creating a Apical_hypha.

Definition at line 102 of file alternaria_model.h.

float Alternaria_density::get_lateral_hypha_1_p ( ) const [inline]

Returns the probability of creating a Lateral_hypha at level 1.

Definition at line 109 of file alternaria_model.h.

float Alternaria_density::get_lateral_hypha_n_p ( ) const [inline]

Returns the probability of creating a Lateral_hypha at level > 1.

Definition at line 116 of file alternaria_model.h.

const Density::Uniform_params& Alternaria_density::get_c_1 ( ) const [inline]

Gets the Alternaria_density::c_1 parameters.

Definition at line 120 of file alternaria_model.h.

void Alternaria_density::set_num_levels_p ( float  p) throw (jwscxx::base::Arg_error)

Sets the number of levels density parameters.

Parameters:
pGeometric density parameter.
Exceptions:
jwscxx::base::Arg_errorParameter not valid.

Definition at line 131 of file alternaria_model.cpp.

void Alternaria_density::set_structure_p ( float  spore_p,
float  apical_hypha_p,
float  lateral_hypha_1_p,
float  lateral_hypha_n_p 
) throw (jwscxx::base::Arg_error)

Sets the Structure creation probabilities.

Parameters:
spore_pProbability of creating a Spore.
apical_hypha_pProbability of creating a Apical_hypha.
lateral_hypha_1_pProbability of creating a Lateral_hypha at level 1.
lateral_hypha_n_pProbability of creating a Lateral_hypha at level > 1.
Exceptions:
jwscxx::base::Arg_errorParameters not valid.

Definition at line 152 of file alternaria_model.cpp.

void Alternaria_density::set_c_1 ( float  min,
float  max 
) throw (jwscxx::base::Arg_error)

Sets the Alternaria_density::c_1 parameters.

Parameters:
minMinimum value.
maxMaximum value.
Exceptions:
jwscxx::base::Arg_errorParameters are not a valid range.

Definition at line 180 of file alternaria_model.cpp.

float Alternaria_density::sample_c_1 ( ) const

Creates a random Alternaria::c_1.

Returns:
A randomly sampled Alternaria::c_1 value.

Definition at line 191 of file alternaria_model.cpp.

Alternaria * Alternaria_density::sample ( size_t  N,
float  centroid_x,
float  centroid_y,
float  centroid_z,
float  theta,
float  psi,
size_t  base_level,
const Spore_density spore_d,
const Apical_hypha_density apical_hypha_d,
const Lateral_hypha_density lateral_hypha_1_d,
const Lateral_hypha_density lateral_hypha_n_d 
) const throw (jwscxx::base::Arg_error) [virtual]

Creates a random Alternaria.

Parameters:
NImaging_window to use.
centroid_xX-coord of the root Structure::centroid.
centroid_yY-coord of the root Structure::centroid.
centroid_zZ-coord of the root Structure::centroid.
thetaEuler angle: base rotation about the x-axis.
psiEuler angle: base rotation about the z-axis.
base_levelBase level for all Structure.
spore_dSpore_density parameters.
apical_hypha_dApical_hypha_density parameters.
lateral_hypha_1_dLateral_hypha_density parameters at level 1.
lateral_hypha_n_dLateral_hypha_density parameters at level > 1.
Exceptions:
jwscxx::base::Arg_errorValues of sampled Alternaria Structure not in density parameter ranges.
Returns:
A randomly sampled Alternaria.

Definition at line 216 of file alternaria_model.cpp.

void Alternaria_density::generate_structure ( Alternaria alternaria,
size_t  N,
float  centroid_x,
float  centroid_y,
float  centroid_z 
) const throw (jwscxx::base::Arg_error) [protected]

Generates the structure in an Alternaria.

Parameters:
alternariaAlternaria to generate the structure in.
NImaging_window to use.
centroid_xX-coord of the root Structure::centroid.
centroid_yY-coord of the root Structure::centroid.
centroid_zZ-coord of the root Structure::centroid.
Exceptions:
jwscxx::base::Arg_errorValues of sampled Alternaria Structure not in density parameter ranges.

Definition at line 260 of file alternaria_model.cpp.


Member Data Documentation

Geometric density parameter for the number of levels in Alternaria.

Definition at line 184 of file alternaria_model.h.

float Alternaria_density::spore_p [protected]

Probability of creating an Spore.

Definition at line 187 of file alternaria_model.h.

Probability of creating an Apical_hypha.

Definition at line 190 of file alternaria_model.h.

Probability of creating a Lateral_hypha at level 1.

Definition at line 193 of file alternaria_model.h.

Probability of creating a Lateral_hypha at level > 1.

Definition at line 196 of file alternaria_model.h.

Uniform density parameters for the constant C_1.

Definition at line 199 of file alternaria_model.h.


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