Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalculateCurveFitAction and support for 3PL curve fit #6053

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

cnathe
Copy link
Contributor

@cnathe cnathe commented Nov 13, 2024

Rationale

We will be adding support for including a curve fit line in the chart wizard. This set of PRs are the first step: adding an API to request a curve fit for a set of data points. The API uses our existing curve fit types along with the new 3PL fit type. The response includes the curve fit parameters for the requested fit type, the stats for the fit, and generated data points to use for plotting (optional).

Related Pull Requests

Changes

  • ParameterCurveFit to support constants for min and max asymptote
  • Add Sigmoidal Logistic 3 Parameter curve fit
  • StatsServiceImpl.TestCase update for 3PL curve fit and 4PL simplex fit
  • Add curve fit stats for new API: residual sum of squares, root mean square error, R2, adjusted R2

}

@Override
public CurveFit getCurveFit(CurveFitType type, DoublePoint[] data, @Nullable Double asymptoteMin, @Nullable Double asymptoteMax)
{
switch (type)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the plan to keep both 3 Parameter variants, or are we waiting for feedback from the client? Unless there is a good reason to keep both, it feels like having a single fit function might be less confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not entirely sure yet. I was thinking of keeping them both around for now (similar to how we currently have 2 variants of 4PL curve fits). Then when we get to the actually plotting story to implement the selection of the curve fit type, we can make the final call at that time and either: 1) only show a subset of the options in the plotting UI or 2) remove the 3PL option we don't want.

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

Successfully merging this pull request may close these issues.

2 participants