Gadget
Public Member Functions | List of all members
RecStatistics Class Reference

This is the class used to calculate a likelihood score based on statistical data sampled from the tagging experiments. More...

#include <recstatistics.h>

Inheritance diagram for RecStatistics:
Inheritance graph
Collaboration diagram for RecStatistics:
Collaboration graph

Public Member Functions

 RecStatistics (CommentStream &infile, const AreaClass *const Area, const TimeClass *const TimeInfo, double weight, TagPtrVector Tag, const char *name)
 This is the RecStatistics constructor. More...
 
virtual ~RecStatistics ()
 This is the default RecStatistics destructor. More...
 
virtual void addLikelihood (const TimeClass *const TimeInfo)
 This function will calculate the likelihood score for the RecStatistics component. More...
 
virtual void Reset (const Keeper *const keeper)
 This function will reset the RecStatistics likelihood information. More...
 
virtual void Print (ofstream &outfile) const
 This function will print the summary RecStatistics likelihood information. More...
 
void setFleetsAndStocks (FleetPtrVector &Fleets, StockPtrVector &Stocks)
 This will select the fleets and stocks required to calculate the RecStatistics likelihood score. More...
 
virtual void printSummary (ofstream &outfile)
 This function will print summary information from the RecStatistics likelihood calculation. More...
 
virtual void printLikelihood (ofstream &outfile, const TimeClass *const TimeInfo)
 This function will print information from each Recaptures calculation. More...
 
- Public Member Functions inherited from Likelihood
 Likelihood (LikelihoodType T, double w, const char *givenname)
 This is the default Likelihood constructor. More...
 
virtual ~Likelihood ()
 This is the default Likelihood destructor. More...
 
virtual void addLikelihoodKeeper (const TimeClass *const TimeInfo, Keeper *const keeper)
 This function will calculate the likelihood score for the current model after adjusting the parameters. More...
 
virtual void Reset (const TimeClass *const TimeInfo)
 This function will reset the likelihood information. More...
 
double getLikelihood () const
 This will return the weighted likelihood score for the likelihood component. More...
 
LikelihoodType getType () const
 This will return the type of likelihood class. More...
 
double getUnweightedLikelihood () const
 This will return the unweighted likelihood score for the likelihood component. More...
 
double getWeight () const
 This will return the weight applied to the likelihood component. More...
 
- Public Member Functions inherited from HasName
 HasName ()
 This is the default HasName constructor. More...
 
virtual ~HasName ()
 This is the default HasName destructor. More...
 
 HasName (const char *givenname)
 This is the HasName constructor for a specified name. More...
 
const char * getName () const
 This will return a null terminated text string containing the name of the object. More...
 

Additional Inherited Members

- Protected Attributes inherited from Likelihood
double likelihood
 This stores the calculated score for the likelihood component. More...
 
double weight
 This stores the weight to be applied to the likelihood component. More...
 

Detailed Description

This is the class used to calculate a likelihood score based on statistical data sampled from the tagging experiments.

This class calculates a likelihood score based on the difference between statistical data sampled from tagging experiments within the model and that caught by fleets, according to the landings data. This is typically used to compare biological data, such as mean length at age This class is an extension of the CatchStatistics class for tagged populations. The model will calculate the mean length of the tagged stock that is caught according to the model parameters, and aggregate this into specified age groups. This statistical data is then compared to the corresponding data calculated from the tagging experiment data.

Constructor & Destructor Documentation

◆ RecStatistics()

RecStatistics::RecStatistics ( CommentStream infile,
const AreaClass *const  Area,
const TimeClass *const  TimeInfo,
double  weight,
TagPtrVector  Tag,
const char *  name 
)

This is the RecStatistics constructor.

Parameters
infileis the CommentStream to read the RecStatistics data from
Areais the AreaClass for the current model
TimeInfois the TimeClass for the current model
weightis the weight for the likelihood component
Tagis the TagPtrVector of tagging experiments for the current model
nameis the name for the likelihood component

◆ ~RecStatistics()

RecStatistics::~RecStatistics ( )
virtual

This is the default RecStatistics destructor.

Member Function Documentation

◆ addLikelihood()

void RecStatistics::addLikelihood ( const TimeClass *const  TimeInfo)
virtual

This function will calculate the likelihood score for the RecStatistics component.

Parameters
TimeInfois the TimeClass for the current model

Implements Likelihood.

◆ Print()

void RecStatistics::Print ( ofstream &  outfile) const
virtual

This function will print the summary RecStatistics likelihood information.

Parameters
outfileis the ofstream that all the model information gets sent to

Implements Likelihood.

◆ printLikelihood()

void RecStatistics::printLikelihood ( ofstream &  outfile,
const TimeClass *const  TimeInfo 
)
virtual

This function will print information from each Recaptures calculation.

Parameters
outfileis the ofstream that all the model likelihood information gets sent to
TimeInfois the TimeClass for the current model

Reimplemented from Likelihood.

◆ printSummary()

void RecStatistics::printSummary ( ofstream &  outfile)
virtual

This function will print summary information from the RecStatistics likelihood calculation.

Parameters
outfileis the ofstream that all the model likelihood information gets sent to

Reimplemented from Likelihood.

◆ Reset()

void RecStatistics::Reset ( const Keeper *const  keeper)
virtual

This function will reset the RecStatistics likelihood information.

Parameters
keeperis the Keeper for the current model

Reimplemented from Likelihood.

◆ setFleetsAndStocks()

void RecStatistics::setFleetsAndStocks ( FleetPtrVector Fleets,
StockPtrVector Stocks 
)
virtual

This will select the fleets and stocks required to calculate the RecStatistics likelihood score.

Parameters
Fleetsis the FleetPtrVector of all the available fleets
Stocksis the StockPtrVector of all the available stocks

Reimplemented from Likelihood.


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