Example Rework - #69
Draft
pilarcoordinates wants to merge 21 commits into
Draft
Conversation
added 21 commits
August 28, 2026 11:52
… examples; deleted doubled functions for CI computation
LuMarv
reviewed
Aug 31, 2026
Collaborator
There was a problem hiding this comment.
Here is still a mix of underscore and camel-case naming. Is that intentional?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 theexamplesdirectory structure.For
parameterEstimationWhiteCabbagea functioncomputeCIas well as some helpers (BetaCdf,BetaInv,BetaPdf,Tinv) for the confidence intervals has been introduced, sonlparcifrom 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
Tinvinternally depends on the following functions:added (since not available outside ML&Statistics Toolbox):
BetaCdf- Cdf of the beta distributionBetaInv- quantile of the beta distributionBetaPdf- Pdf of the beta distributionMATLAB internal:
betainc- incomplete beta function