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

Prepare v0.6.1 #60

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [0.6.0] - 2024-03-19
## [0.6.1] - 2024-03-21
### Added Features and Improvements 🙌:
- All new and improved interpolation API, the predictions are now more reliable
- Using the latest flutter 3.19 with upgraded deps
Expand All @@ -29,6 +29,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Other changes:
- Disabling interpolation, will now use sigma=2days for extrapolation prediction
- Removed v0.6.0 due to critical bug when user targe weight was set.


## [0.5.0] - 2024-01-25
Expand Down Expand Up @@ -168,8 +169,8 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- initial release


[Unreleased]: https://github.com/quantumphysique/trale/compare/v0.6.0...main
[0.6.0]: https://github.com/quantumphysique/trale/compare/v0.5.0...v0.6.0
[Unreleased]: https://github.com/quantumphysique/trale/compare/v0.6.1...main
[0.6.0]: https://github.com/quantumphysique/trale/compare/v0.5.0...v0.6.1
[0.5.0]: https://github.com/quantumphysique/trale/compare/v0.4.7...v0.5.0
[0.4.7]: https://github.com/quantumphysique/trale/compare/v0.4.6...v0.4.7
[0.4.6]: https://github.com/quantumphysique/trale/compare/v0.4.4...v0.4.6
Expand Down
7 changes: 5 additions & 2 deletions app/lib/core/measurementInterpolation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ class MeasurementInterpolation {
/// length of vectors
int get N => times.length;

/// length of displayed vectors
int get NDisplay => timesDisplay.length;

Vector? _times;
/// get vector containing the times given in [ms since epoch]
Vector get times => _times ??= _createTimes();
Expand Down Expand Up @@ -421,7 +424,7 @@ class MeasurementInterpolation {
/// final change Rate
double get finalChangeRate => _linearChangeRate(
N - 1 - _offsetInDays,
N - 1 - _offsetInDaysShown,
N - 1 - _offsetInDays + _offsetInDaysShown,
weightsGaussianExtrapol,
);

Expand All @@ -431,7 +434,7 @@ class MeasurementInterpolation {
return null;
}

final int idxLast = idxsMeasurements.last;
final int idxLast = NDisplay - 1 - _offsetInDaysShown;
final double slope = finalChangeRate;

// Crossing is in the past
Expand Down
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.6.0+15
version: 0.6.1+16

environment:
sdk: ">=3.3.0 <4.0.0"
Expand Down
Loading