Description
Sum resource quantities, their declared reused portions, and reused portions with provenanceVerified true.
A farm or garden budget depends on a common area, quantity, observation period, and system boundary. Recovery, exclusions, overlap, and allocation change how a share is calculated. Supplied accounting or geometry terms remain separate from measured crop performance and verified environmental outcomes.
Sum resource quantities, their declared reused portions, and reused portions with provenanceVerified true.
When to use this tool
Use Resource Reuse Support Share when you need a clearly bounded area, material, resource, energy, or allocation term for supplied garden or farm records.
How to use the tool and how it works
- Enter resourceQuantities, reusedFractions, provenanceVerified. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read totalQuantity, declaredReused, verifiedReused, verifiedShare, defined. Inspect defined before interpreting the associated values.
Sum resource quantities, their declared reused portions, and reused portions with provenanceVerified true. Return verifiedShare=verifiedReused/totalQuantity, or zero with defined false for zero total, using aligned nonnegative quantities and fractions within zero through one.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| resourceQuantities | Resource Quantities | Required. Array of finite number; minimum 0; maximum items 256. |
| reusedFractions | Reused Fractions | Required. Array of finite number; maximum items 256. |
| provenanceVerified | Provenance Verified | Required. Array of boolean; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| totalQuantity | Total Quantity | Required. Finite number. |
| declaredReused | Declared Reused | Required. Finite number. |
| verifiedReused | Verified Reused | Required. Finite number. |
| verifiedShare | Verified reused quantity divided by all resource quantity. | Required. Finite number. |
| defined | Whether the stated denominator or quantity is defined; inspect before interpreting a placeholder. | Required. Boolean. |
{
"input": {
"resourceQuantities": [
10,
20
],
"reusedFractions": [
0.5,
0.5
],
"provenanceVerified": [
true,
false
]
},
"output": {
"totalQuantity": 30,
"declaredReused": 15,
"verifiedReused": 5,
"verifiedShare": 0.16666666666666666,
"defined": true
}
} Limitations and assumptions
- The denominator is all resource quantity, not declared reuse. Verification flags are supplied annotations, not independent source checks or environmental certification.
- 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
Verify the system boundary, units, and source records before combining this term into a resource or environmental report. Physical design and crop-performance questions require appropriate measurements and a broader model.
References
Similar or alternative tools
- Resource Reuse Input Share
Return share=reused/total with positive total and reused within zero and total.
- Farm Packaging Return Reuse Count Share
Return returnShare=returned/issued, reuseAmongReturned=reused/returned, and netOutstanding=issued-returned.