TrySelect the constant-offset option under Error characteristics observed. Keep Required accuracy at Medium, Reference standards available at Two reference points available, and 5 sensors.
ObserveWith no error boxes selected and Number of sensors to calibrate at 5, the opening suggestion is One-Point Calibration with a 10–25 min fleet estimate. Selecting constant offset with the other defaults changes the suggestion to Two-Point Calibration.
ExplainError characteristics observed drives a fixed decision tree over 3 error types: nonlinear error takes priority, followed by scale error or a medium-accuracy offset case with enough references. Number of sensors to calibrate multiplies the chosen method’s fixed time range.
Technical boundaries. The advisor assumes the selected error description is accurate and does not fit measurement data. A nonlinear selection can recommend multiple points even when too few references are available; the coded shortage warning only appears when fewer than two references were selected.
Try It: Calibration Method Advisor
Use the observed error shape to explore a method. Check its suggestion against reference uncertainty and separate test results before use.
Note
Describe your sensor scenario and get a recommended calibration approach.
viewof adv_error_type = Inputs.checkbox( ["Constant offset (reads high/low by same amount everywhere)","Scale error (error grows with reading)","Nonlinear (error varies unpredictably across range)"], {label:"Error characteristics observed"})viewof adv_accuracy_needed = Inputs.radio( ["Low (<2°C / 5%)","Medium (<0.5°C / 1%)","High (<0.1°C / 0.2%)"], {value:"Medium (<0.5°C / 1%)",label:"Required accuracy"})viewof adv_num_sensors = Inputs.range([1,100], {value:5,step:1,label:"Number of sensors to calibrate"})viewof adv_has_references = Inputs.radio( ["One reference point available","Two reference points available","Three or more reference points"], {value:"Two reference points available",label:"Reference standards available"})
adv_has_offset = adv_error_type.includes("Constant offset (reads high/low by same amount everywhere)")adv_has_scale = adv_error_type.includes("Scale error (error grows with reading)")adv_has_nonlinear = adv_error_type.includes("Nonlinear (error varies unpredictably across range)")adv_high_acc = adv_accuracy_needed ==="High (<0.1°C / 0.2%)"adv_med_acc = adv_accuracy_needed ==="Medium (<0.5°C / 1%)"adv_refs = adv_has_references ==="Three or more reference points"?3: adv_has_references ==="Two reference points available"?2:1adv_method = adv_has_nonlinear || (adv_high_acc && adv_refs >=3)?"multi": (adv_has_scale || (adv_has_offset && adv_med_acc && adv_refs >=2))?"two":"one"adv_methods = ({one: {name:"One-Point Calibration",color:"#16A085",desc:"Corrects constant offset error using a single reference measurement.",time:"2--5 min per sensor",math:"corrected = raw - offset",limitations:"Cannot correct scale or nonlinear errors." },two: {name:"Two-Point Calibration",color:"#3498DB",desc:"Corrects both offset and scale (gain) errors using two reference measurements.",time:"10--15 min per sensor",math:"corrected = raw × scale + offset",limitations:"Assumes linear sensor response. May miss nonlinear behavior between calibration points." },multi: {name:"Multi-Point Calibration",color:"#9B59B6",desc:"Fits a polynomial curve through 3+ reference points to correct nonlinear sensor response.",time:"20--30 min per sensor",math:"corrected = a×raw² + b×raw + c (or higher order)",limitations:"Requires more reference standards and computation. Risk of overfitting with too many terms." }})adv_chosen = adv_methods[adv_method]adv_total_time_min = adv_method ==="one"?2: adv_method ==="two"?10:20adv_total_time_max = adv_method ==="one"?5: adv_method ==="two"?15:30html`<div style="background: var(--bs-light, #f8f9fa); padding: 1rem; border-radius: 8px; border-left: 4px solid ${adv_chosen.color}; margin-top: 0.5rem;"><h4 style="color: ${adv_chosen.color}; margin-top: 0;">Recommended: ${adv_chosen.name}</h4><p>${adv_chosen.desc}</p><table style="width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.9em;"><tr><td style="padding: 4px 8px; font-weight: bold; color: #2C3E50; width: 35%;">Formula</td><td style="padding: 4px 8px; font-family: monospace;">${adv_chosen.math}</td></tr><tr style="background: rgba(0,0,0,0.03);"><td style="padding: 4px 8px; font-weight: bold; color: #2C3E50;">Time per sensor</td><td style="padding: 4px 8px;">${adv_chosen.time}</td></tr><tr><td style="padding: 4px 8px; font-weight: bold; color: #2C3E50;">Fleet estimate (${adv_num_sensors} sensors)</td><td style="padding: 4px 8px;">${adv_total_time_min * adv_num_sensors}--${adv_total_time_max * adv_num_sensors} min (${((adv_total_time_min * adv_num_sensors) /60).toFixed(1)}--${((adv_total_time_max * adv_num_sensors) /60).toFixed(1)} hours)</td></tr><tr style="background: rgba(0,0,0,0.03);"><td style="padding: 4px 8px; font-weight: bold; color: #2C3E50;">Limitations</td><td style="padding: 4px 8px;">${adv_chosen.limitations}</td></tr></table>${adv_refs <2&& adv_method !=="one"?html`<p style="color: #E67E22; margin-top: 0.5rem;"><strong>Note:</strong> ${adv_chosen.name} requires ${adv_method ==="two"?"2":"3+"} reference points, but you indicated only ${adv_refs}. Consider obtaining additional reference standards.</p>`:""}${adv_error_type.length===0?html`<p style="color: #7F8C8D; margin-top: 0.5rem;"><em>Tip: Select at least one error characteristic above for a more specific recommendation.</em></p>`:""}</div>`