Double Cocoon Percent Defect Rate
Audit double-cocoon count share and a caller equal-mass price-discount scenario; count share is not claimed to be measured double-cocoon mass share.
Description
Double-cocoon prevalence is a count share.
Double-cocoon prevalence is a count share. Using it as a price mixture requires an explicit equal-mass assumption.
Audit double-cocoon count share and a caller equal-mass price-discount scenario; count share is not claimed to be measured double-cocoon mass share.
When to use Double Cocoon Percent Defect Rate
Use this tool to audit double-cocoon count share and a caller equal-mass price-discount scenario; count share is not claimed to be measured double-cocoon mass share.
Prepare cocoon, larval, leaf or reeling measurements on a consistent batch and moisture basis. Use the declared mass, length and time units.
How to use Double Cocoon Percent Defect Rate and understand its results
- Prepare cocoon, larval, leaf or reeling measurements on a consistent batch and moisture basis. Use the declared mass, length and time units.
- Enter inspectedCocoonsByLot, doubleCocoonsByLot, singlePricePerKg, doublePricePerKg, lotNetMassKg, callerDoubleCountLimitFraction using the field table and calculation rules, then run the tool.
- Read doubleCountPercentByLot, pooledDoubleCountPercent, aboveCallerCountLimit, equalMassMixValue. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
| Input field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| inspectedCocoonsByLot | Inspected cocoons by lot | list of number | Required |
| doubleCocoonsByLot | Double cocoons by lot | list of number | Required |
| singlePricePerKg | Single price per kg | number | Required |
| doublePricePerKg | Double price per kg | number | Required |
| lotNetMassKg | Lot net mass kg | number | Required |
| callerDoubleCountLimitFraction | Caller double count limit fraction | number | Required |
Align positive integer inspected counts with double counts no greater than inspected. Return local and pooled count percentages, a strict count-limit flag and the nonnegative-price value scenario.1
Paired lists must be nonempty and have equal lengths.
equal-mass value = lot kg × [(1 − double share)single price + double share × double price] Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| doubleCountPercentByLot | Double count percent by lot | list of number |
| pooledDoubleCountPercent | Pooled double count percent | number |
| aboveCallerCountLimit | Above caller count limit | boolean |
| equalMassMixValue | Equal mass mix value | number |
{
"input": {
"inspectedCocoonsByLot": [
100,
200
],
"doubleCocoonsByLot": [
10,
40
],
"singlePricePerKg": 5,
"doublePricePerKg": 2,
"lotNetMassKg": 30,
"callerDoubleCountLimitFraction": 0.15
},
"output": {
"doubleCountPercentByLot": [
10,
20
],
"pooledDoubleCountPercent": 16.666666666666664,
"aboveCallerCountLimit": true,
"equalMassMixValue": 135
}
} Limitations and assumptions
Count share is not measured mass share; prices and policy are supplied.
Numbers and computed results must be finite; overflow produces an error. Numeric lists are limited to 100,000 entries; the rules above may require smaller limits. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors. A successfully returned false flag is an evaluated outcome; its meaning is explained above.
Alternative or Complementary methods
Use Single Cocoon Weight MG: Calculate tare-corrected batch and pooled single-cocoon mg means with count weighting; no nominal breed cocoon mass table. For a complementary task, use Cocoon Price From Shell Percent: Interpolate a supplied auction shell-percent price schedule and quality multiplier without market-price defaults or out-of-range extrapolation.
References
-
Double Cocoon Percent Defect Rate — tool.io
Similar or alternative tools
- Single Cocoon Weight MG
Calculate tare-corrected batch and pooled single-cocoon mg means with count weighting; no nominal breed cocoon mass table.
- Cocoon Price From Shell Percent
Interpolate a supplied auction shell-percent price schedule and quality multiplier without market-price defaults or out-of-range extrapolation.