Skip to content

Main content

Fish Length Frequency One Bin Density Tool

Calculate fish length frequency one bin density from explicit caller-supplied inputs.

Loading tool…

Description

Return count/total, that fraction divided by bin width, and count/sampledFraction.

A subsample fraction, histogram bin, or counted category describes a selected part of a larger fisheries record. Expansion and relative frequency have different denominators and require explicit sampling assumptions.

Return count/total, that fraction divided by bin width, and count/sampledFraction.

When to use this tool

Use Fish Length Frequency One Bin Density when you need a bounded sample-count or expansion component.

How to use the tool and how it works

  1. Enter count, total, lowerLength, upperLength, sampledFraction. 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 relativeFrequency, density, expandedCount. Use the output convention below.

Require positive total, count within it, increasing length-bin bounds, and sampledFraction in (0, 1]. Return count/total, that fraction divided by bin width, and count/sampledFraction.1

Input fieldMeaning and unitsAccepted input
countCount under the stated selection and duplicate convention.Required. Safe integer; minimum 0.
totalTotalRequired. Safe integer; minimum 1.
lowerLengthLower LengthRequired. Finite number.
upperLengthUpper LengthRequired. Finite number.
sampledFractionSampled FractionRequired. Finite number; maximum 1; strictly above 0.
Output fieldInterpretationReturned shape
relativeFrequencyRelative FrequencyRequired. Finite number.
densityRelative frequency per input length unit, not fish per geographic area.Required. Finite number.
expandedCountExpanded CountRequired. Finite number.
json
{
  "input": {
    "count": 20,
    "total": 100,
    "lowerLength": 10,
    "upperLength": 15,
    "sampledFraction": 0.5
  },
  "output": {
    "relativeFrequency": 0.2,
    "density": 0.04,
    "expandedCount": 40
  }
}

Limitations and assumptions

  • Density is relative frequency per length unit, not fish per area; expandedCount uses a supplied sampling fraction and may be fractional.
  • 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. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use a documented sampling design and assess representativeness, detection, and uncertainty before making population estimates.

References

  1. Calculation and input contract: ichthyology/fish-length-frequency-one-bin-density — tool.io

Similar or alternative tools