Skip to content

Example Rework - #69

Draft
pilarcoordinates wants to merge 21 commits into
publicfrom
example_rename
Draft

Example Rework#69
pilarcoordinates wants to merge 21 commits into
publicfrom
example_rename

Conversation

@pilarcoordinates

Copy link
Copy Markdown
Collaborator

This PR introduces the new camel case naming scheme for all examples (e.g. rhsExample.m, runExample.m) as well as minor bug fixes and reworking of the examples directory structure.

For parameterEstimationWhiteCabbage a function computeCI as well as some helpers (BetaCdf, BetaInv, BetaPdf, Tinv) for the confidence intervals has been introduced, so nlparci from ML&Statistics Toolbox is no longer required.

Explanation of computeCI:
The function estimates the residual variance (s2) and computed the parameter covariance matrix (CovP = s2 * (Rinv * transpose(Rinv)) by a prior QR factorization of the Jacobian of the System. It determines the critical t-value at confidence level 95% by using the inverse Cdf of Student's t-distribution (Tinv). Then, it computes the standard error (SE) to get the boundaries of the confidence intervals (param ± (tcrit * SE)).

The function Tinv internally depends on the following functions:

added (since not available outside ML&Statistics Toolbox):
BetaCdf - Cdf of the beta distribution
BetaInv - quantile of the beta distribution
BetaPdf - Pdf of the beta distribution

MATLAB internal:
betainc - incomplete beta function

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is still a mix of underscore and camel-case naming. Is that intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants