Skip to content

Main content

Animal Diary Active Resting Share Tool

Calculate animal diary active resting share from explicit caller-supplied inputs.

Loading tool…

Description

Return knownMinutes=activeMinutes+restingMinutes.

Specimen measurements and animal observations depend on a defined body part, reference value, unit, and observation window. A mass fraction, size ratio, or timing share summarizes those inputs. The counting and measurement conventions must stay explicit when comparing specimens or records.

Return knownMinutes=activeMinutes+restingMinutes.

When to use this tool

Use Animal Diary Active Resting Share when you need to compare supplied specimen measurements or observation records under an explicit reference and denominator.

How to use the tool and how it works

  1. Enter activeMinutes, restingMinutes, unknownMinutes, excludeUnknown. 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 knownMinutes, activeFraction, unknownFraction. Use the output convention below.

Return knownMinutes=activeMinutes+restingMinutes. Divide activeMinutes by knownMinutes when excludeUnknown is true, otherwise by knownMinutes+unknownMinutes; always calculate unknownFraction against the complete total.1

Input fieldMeaning and unitsAccepted input
activeMinutesActive MinutesRequired. Finite number; minimum 0.
restingMinutesResting MinutesRequired. Finite number; minimum 0.
unknownMinutesUnknown MinutesRequired. Finite number; minimum 0.
excludeUnknownExclude UnknownRequired. Boolean.
Output fieldInterpretationReturned shape
knownMinutesKnown MinutesRequired. Finite number.
activeFractionActive FractionRequired. Finite number.
unknownFractionUnknown FractionRequired. Finite number.
json
{
  "input": {
    "activeMinutes": 60,
    "restingMinutes": 120,
    "unknownMinutes": 60,
    "excludeUnknown": true
  },
  "output": {
    "knownMinutes": 180,
    "activeFraction": 0.3333333333333333,
    "unknownFraction": 0.25
  }
}

Limitations and assumptions

  • Known time must be positive even when unknown time is included. Excluding unknown changes the active fraction's denominator without resolving unknown behavior.
  • The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.
  • 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 compatible measurements and observation records to verify the chosen denominator and reference before interpreting a specimen comparison.

References

  1. Calculation and input contract: zoology/animal-diary-active-resting-share — tool.io

Similar or alternative tools