-
Notifications
You must be signed in to change notification settings - Fork 62
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
overriden calibrations used in slopeOOBHandler ? #378
Comments
I's day: forget about that if you want to have the same behaviour as xDrip: As you have already pointed out here: #361 , there is another bug that Basically what stays it is just a distinction if the initial calibration is done (then we have at least 2 calibrations) or if a third one was entered and then return a default value based on the default parameters and sensor age. The whole calibration algorithm would need an overhaul. |
returnvalue would be different depending calibrations.size() if L544 will never happen as you say, then the value would be if size = 3 if size = 2 The test I'm doing now is doing an override immediately after initial calibration. But ok I'll align it with the Android version |
Yea, sure. Overriding the initial calibration is an exception. After the initial calibration, the slope usually is 1.15 and after But actually it is both a situation where we don't have much information The inicial calibration and how it is represented and overwritten also Overall this is just the slopeOOBHandler. Usually linear regression does On 20/08/16 23:26, Johan Degraeve wrote:
|
when overriding a calibration, the latest calibration is changed so that sensor_confidence=0 and slope_confidence=0 (see https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/blob/master/app/src/main/java/com/eveningoutpost/dexdrip/Models/Calibration.java#L664)
Then when a new calibration is created, a call is made to calculate_w_l_s
this one makes a call to slopeOOBHandler
slopeOOBHandler uses the latest 3 calibrations. For this it calls Calibrations.latest(3)
https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/blob/master/app/src/main/java/com/eveningoutpost/dexdrip/Models/Calibration.java#L550
But latest(3) is picking up all calibrations with matching sensor id, the latest 3, that means it also takes the latest one which is actually being overriden.
Is that normal ?
I would think that it's better to get Calibration.allForSensorInLastFourDays and then take the latet 3 from that result.
The text was updated successfully, but these errors were encountered: