Skip to content

Main content

PK Terminal Window Min Point Budget Tool

Audit distinct supplied terminal-window timestamps against a supplied minimum; does not fit elimination or validate a terminal phase.

Loading tool…

Description

Count distinct selected sampling times, duplicate selected rows, and the shortfall against a supplied minimum.

Pharmacokinetic research describes concentration over time using measurement units and an explicit model. Concentration-time area, its time-weighted moment, inverse-time rate constants, clearance, and volume are related but distinct quantities. A conversion or local model term does not estimate every parameter or validate a complete study.

Count distinct selected sampling times, duplicate selected rows, and the shortfall against a supplied minimum.

When to use this tool

Use PK Terminal Window Min Point Budget when you need this concentration-time conversion, sampling check, local integral panel, or explicitly supplied kinetic-model term.

How to use the tool and how it works

  1. Enter sampleTimes, selected, requiredPoints. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read distinctSelectedPoints, shortfall, duplicateSelectedPoints. Use the output convention below.

Require aligned sampleTimes and selected flags and positive integer requiredPoints. Count distinct selected times, shortfall=max(0,requiredPoints-distinctCount), and duplicateSelectedPoints=selectedRowCount-distinctCount.1

Input fieldMeaning and unitsAccepted input
sampleTimesSampling times in one common time unit and origin.Required. Array of finite number; maximum items 256.
selectedZero-based index of the selected category.Required. Array of boolean; maximum items 256.
requiredPointsRequired PointsRequired. Safe integer; minimum 1.
Output fieldInterpretationReturned shape
distinctSelectedPointsDistinct Selected PointsRequired. Safe integer.
shortfallShortfallRequired. Safe integer.
duplicateSelectedPointsDuplicate Selected PointsRequired. Safe integer.
json
{
  "input": {
    "sampleTimes": [
      1,
      2,
      2,
      3
    ],
    "selected": [
      true,
      true,
      true,
      false
    ],
    "requiredPoints": 3
  },
  "output": {
    "distinctSelectedPoints": 2,
    "shortfall": 1,
    "duplicateSelectedPoints": 1
  }
}

Limitations and assumptions

  • Repeated times are identified by exact numeric equality. A sufficient count does not establish a terminal log-linear phase, suitable sampling times, assay quality, or a valid slope fit.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Signed zero is exported as zero.

Alternative or Complementary methods

Use a complete study analysis when a local panel, transformation, or model factor is insufficient. Check sampling times, censoring, assay support, unit conventions, and the validity of the assumed kinetic regime.

References

  1. Calculation and input contract: pharmacokinetics/pk-terminal-window-min-point-budget — tool.io

Similar or alternative tools