Skip to content

Commit

Permalink
Doc: Update edata.h
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jan 3, 2024
1 parent da93984 commit 8853521
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions include/amici/edata.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ class ReturnData;

/**
* @brief ExpData carries all information about experimental or
* condition-specific data
* condition-specific data.
*/
class ExpData : public SimulationParameters {

public:
/**
* @brief default constructor
* @brief Default constructor.
*/
ExpData() = default;

/**
* @brief Copy constructor, needs to be declared to be generated in
* swig
* @brief Copy constructor.
*/
// needs to be declared to be wrapped by SWIG
ExpData(ExpData const&) = default;

/**
* @brief constructor that only initializes dimensions
* @brief Constructor that only initializes dimensions.
*
* @param nytrue Number of observables
* @param nztrue Number of event outputs
Expand Down Expand Up @@ -154,6 +154,16 @@ class ExpData : public SimulationParameters {
/**
* @brief Set output timepoints.
*
* If the number of timepoint increases, this will grow the
* observation/sigma matrices and fill new entries with NaN.
* If the number of timepoints decreases, this will shrink the
* observation/sigma matrices.
*
* Note that the mapping from timepoints to measurements will not be
* preserved. E.g., say there are measurements at t = 2, and this
* function is called with [1, 2], then the old measurements will belong to
* t = 1.
*
* @param ts timepoints
*/
void setTimepoints(std::vector<realtype> const& ts);
Expand Down Expand Up @@ -225,7 +235,7 @@ class ExpData : public SimulationParameters {
void setObservedDataStdDev(std::vector<realtype> const& observedDataStdDev);

/**
* @brief Set indentical standard deviation for all measurements.
* @brief Set identical standard deviation for all measurements.
*
* @param stdDev standard deviation (dimension: scalar)
*/
Expand Down Expand Up @@ -278,26 +288,23 @@ class ExpData : public SimulationParameters {
realtype const* getObservedDataStdDevPtr(int it) const;

/**
* @brief set function that copies observed event data from input to
* ExpData::observedEvents
* @brief Set observed event data.
*
* @param observedEvents observed data (dimension: nmaxevent x nztrue,
* row-major)
*/
void setObservedEvents(std::vector<realtype> const& observedEvents);

/**
* @brief set function that copies observed event data for specific event
* observable
* @brief Set observed event data for specific event observable.
*
* @param observedEvents observed data (dimension: nmaxevent)
* @param iz observed event data index
*/
void setObservedEvents(std::vector<realtype> const& observedEvents, int iz);

/**
* @brief get function that checks whether event data at specified indices
* has been set
* @brief Check whether event data at specified indices has been set.
*
* @param ie event index
* @param iz event observable index
Expand All @@ -306,42 +313,38 @@ class ExpData : public SimulationParameters {
bool isSetObservedEvents(int ie, int iz) const;

/**
* @brief get function that copies data from ExpData::mz to output
* @brief Get observed event data.
*
* @return observed event data
*/
std::vector<realtype> const& getObservedEvents() const;

/**
* @brief get function that returns a pointer to observed data at ieth
* occurrence
* @brief Get pointer to observed data at ie-th occurrence.
*
* @param ie event occurrence
*
* @return pointer to observed event data at ieth occurrence
* @return pointer to observed event data at ie-th occurrence
*/
realtype const* getObservedEventsPtr(int ie) const;

/**
* @brief set function that copies data from input to
* ExpData::observedEventsStdDev
* @brief Set standard deviation of observed event data.
*
* @param observedEventsStdDev standard deviation of observed event data
*/
void
setObservedEventsStdDev(std::vector<realtype> const& observedEventsStdDev);

/**
* @brief set function that sets all ExpData::observedDataStdDev to the
* input value
* @brief Set standard deviation of observed event data.
*
* @param stdDev standard deviation (dimension: scalar)
*/
void setObservedEventsStdDev(realtype stdDev);

/**
* @brief set function that copies standard deviation of observed data for
* specific observable
* @brief Set standard deviation of observed data for a specific observable.
*
* @param observedEventsStdDev standard deviation of observed data
* (dimension: nmaxevent)
Expand All @@ -352,17 +355,16 @@ class ExpData : public SimulationParameters {
);

/**
* @brief set function that sets all standard deviation of a specific
* observable to the input value
* @brief Set all standard deviations of a specific event-observable.
*
* @param stdDev standard deviation (dimension: scalar)
* @param iz observed data index
*/
void setObservedEventsStdDev(realtype stdDev, int iz);

/**
* @brief get function that checks whether standard deviation of even data
* at specified indices has been set
* @brief Check whether standard deviation of event data
* at specified indices has been set.
*
* @param ie event index
* @param iz event observable index
Expand All @@ -371,16 +373,15 @@ class ExpData : public SimulationParameters {
bool isSetObservedEventsStdDev(int ie, int iz) const;

/**
* @brief get function that copies data from ExpData::observedEventsStdDev
* to output
* @brief Get standard deviation of observed event data.
*
* @return standard deviation of observed event data
*/
std::vector<realtype> const& getObservedEventsStdDev() const;

/**
* @brief get function that returns a pointer to standard deviation of
* observed event data at ie-th occurrence
* @brief Get pointer to standard deviation of
* observed event data at ie-th occurrence.
*
* @param ie event occurrence
*
Expand Down

0 comments on commit 8853521

Please sign in to comment.