SimeMobileCity 0.1
  • API
  • Workflow
  • Site
    • Page
        • MC._prepare

    MC._prepare¶

    MC._prepare(node_p, p_norm, max_dist)¶

    This helper function processes user and poi inputs into node list. User ids are added to a user list for the nodes, to count the number of successful and unsuccessfull attempts to reach destination. POI probabilities are added to the nodes to set the probability for choosing certain nodes as a destination.

    Nodes have a dictionary contatining a probability object, while charging stations are a dictionary used for simulation to fill in the capacity and compare to the maximum capacity.

    Parameters:
    node_p : dictionary, float

    Probability of all nodes not covered by pois each hour each weekday, either a float for the same probability each hour, dictionary of hours for same hour distribution for all days, a dictionary of days for the same hour probability for different days, or a dictionary of days each with a dictionary of hours

    p_norm: string

    Normalize POI dicts with maximum value from all nodes based on given type \(\rightarrow\) largest value is equal to one

    max_dist : float

    Maximal allowed walking distance from charging station to node in m, for nodes not covered by given POI objects

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 1.6.6.