GithubHelp home page GithubHelp logo

Comments (3)

AdrianLxM avatar AdrianLxM commented on September 6, 2024

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 estimate_bg_at_time_of_calibration is never written.
Therefore the only cases where one of the latest calibrations would be used
(e.g. https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/blob/master/app/src/main/java/com/eveningoutpost/dexdrip/Models/Calibration.java#L554) can never happen.

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.

from xdrip-experimental.

JohanDegraeve avatar JohanDegraeve commented on September 6, 2024

returnvalue would be different depending calibrations.size()

if L544 will never happen as you say, then the value would be

if size = 3
Math.max(((-0.048) * (thisCalibration.sensor_age_at_time_of_estimation / (60000 * 60 * 24))) + 1.1, sParams.getDefaultLowSlopeLow());

if size = 2
Math.max(((-0.048) * (thisCalibration.sensor_age_at_time_of_estimation / (60000 * 60 * 24))) + 1.1, sParams.getDefaultLowSlopeHigh());

The test I'm doing now is doing an override immediately after initial calibration.
I'm indeed trying to get exactly the same behaviour as the Android version. Actually I had an error that I was taking the latest3 with sensor confidence != 0 and slope confidence != 0, so I was getting size 2 while the Android version is getting size 3.

But ok I'll align it with the Android version

from xdrip-experimental.

AdrianLxM avatar AdrianLxM commented on September 6, 2024

Yea, sure. Overriding the initial calibration is an exception.

After the initial calibration, the slope usually is 1.15 and after
another one (or overwritten one) 1.08.
Freshly started sensors don't have such high slopes anyways for me and
I've corrected those values down in my version.

But actually it is both a situation where we don't have much information
so setting a default slope close to 1 and adjusting the intercept seems
reasonable to me.

The inicial calibration and how it is represented and overwritten also
is a bit... well. Actually just one bg entry gets overwritten.

Overall this is just the slopeOOBHandler. Usually linear regression does
determine slope and intercept. Just if the slope is too off, reasonable
defaults are returned. They are just general estimations and will be off
for an individual system/patient anyways. I use individual ones that are
much lower - and widened the range where the linear regression result is
not overruled and go very well with it.

On 20/08/16 23:26, Johan Degraeve wrote:

returnvalue would be different depending calibrations.size()

if L544 will never happen as you say, then the value would be

if size = 3
Math.max(((-0.048) * (thisCalibration.sensor_age_at_time_of_estimation
/ (60000 * 60 * 24))) + 1.1, sParams.getDefaultLowSlopeLow());

if size = 2
Math.max(((-0.048) * (thisCalibration.sensor_age_at_time_of_estimation
/ (60000 * 60 * 24))) + 1.1, sParams.getDefaultLowSlopeHigh());

The test I'm doing now is doing an override immediately after initial
calibration.
I'm indeed trying to get exactly the same behaviour as the Android
version. Actually I had an error that I was taking the latest3 with
sensor confidence != 0 and slope confidence != 0, so I was getting
size 2 while the Android version is getting size 3.

But ok I'll align it with the Android version


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#378 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJPmwioP336nAbUnQ5NW0CiV0Pwqcnm7ks5qh3EfgaJpZM4JpKQp.

from xdrip-experimental.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.