Description
Subtract sharedLeg once from their sum, allocating its credit equally when allocateHalfShared or wholly against the first trip otherwise.
Spatial models compare distances, travel intervals, activity areas, or supplied interaction functions. Coordinates and model parameters must share a compatible basis, and a local term does not establish observed behavior.
Subtract sharedLeg once from their sum, allocating its credit equally when allocateHalfShared or wholly against the first trip otherwise.
When to use this tool
Use Commute Trip Shared Leg Credit when you need one explicit spatial or travel-model component.
How to use the tool and how it works
- Enter firstDuration, secondDuration, sharedLeg, allocateHalfShared. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read uniqueDuration, firstAllocated, secondAllocated. Use the output convention below.
Require nonnegative firstDuration and secondDuration and sharedLeg within both. Subtract sharedLeg once from their sum, allocating its credit equally when allocateHalfShared or wholly against the first trip otherwise.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| firstDuration | First Duration | Required. Finite number; minimum 0. |
| secondDuration | Second Duration | Required. Finite number; minimum 0. |
| sharedLeg | Shared Leg | Required. Finite number; minimum 0. |
| allocateHalfShared | Allocate Half Shared | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| uniqueDuration | Unique Duration | Required. Finite number. |
| firstAllocated | First Allocated | Required. Finite number. |
| secondAllocated | Second Allocated | Required. Finite number. |
{
"input": {
"firstDuration": 40,
"secondDuration": 30,
"sharedLeg": 10,
"allocateHalfShared": true
},
"output": {
"uniqueDuration": 60,
"firstAllocated": 35,
"secondAllocated": 25
}
} Limitations and assumptions
- Durations share units; the allocations sum to uniqueDuration but do not infer actual shared travel, fairness, or a transport accounting standard.
- 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
Check projection, route definitions, calibration, and the complete model before interpreting access or predicted flows.
References
Similar or alternative tools
- Household Trip Chain Shared Leg Term
Sum nonnegative travelerLegDistances for personDistance.
- Activity Log Double Counted Minute Term
Return their sum minus overlap and report overlap as countedTwice.