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

feat: function for estimating value from a series #444

Merged
merged 2 commits into from
Apr 16, 2024
Merged

feat: function for estimating value from a series #444

merged 2 commits into from
Apr 16, 2024

Conversation

evanp
Copy link
Contributor

@evanp evanp commented Apr 15, 2024

Added an estimate for series of annual values. Will either return the exact value, an extrapolation forward or backwards, or an interpolation.

If the extrapolation is too far (greater than the length of the series), it returns null.

Includes unit tests.

Signed-off-by: Evan Prodromou <evan@openearth.org>
@evanp
Copy link
Contributor Author

evanp commented Apr 15, 2024

Note that this PR doesn't change the UI for getting population. That needs to be done separately!

app/src/util/series.ts Outdated Show resolved Hide resolved
Signed-off-by: Evan Prodromou <evan@openearth.org>
@evanp evanp requested a review from lemilonkh April 16, 2024 13:16
@evanp evanp merged commit 2f67201 into develop Apr 16, 2024
1 check passed
@evanp evanp deleted the on-1592 branch April 16, 2024 13:18
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.

None yet

2 participants