Skip to content

five-on-it / packages/ai/src/crowd / routineWeights

Function: routineWeights() ​

routineWeights(minutes, mix?): readonly ["civilian" | "shopkeeper" | "jogger" | "commuter" | "dog_walker" | "vendor" | "smoker" | "queuer" | "sitter" | "foot_officer" | "street_sweeper" | "dog", number][]

Defined in: packages/ai/src/crowd.ts:236

The weight of each routine at a time of day: ROUTINE_MIX, or the routines a district's mix names, by the hours of CROWD_HOURS.

Parameters ​

minutes ​

number

mix? ​

Readonly<Record<string, number>>

Returns ​

readonly ["civilian" | "shopkeeper" | "jogger" | "commuter" | "dog_walker" | "vendor" | "smoker" | "queuer" | "sitter" | "foot_officer" | "street_sweeper" | "dog", number][]