SimeMobileCity 0.1
  • API
  • Workflow
  • Site
    • Page
        • P

    P¶

    class simemobilecity.partition.P(p)¶

    This class defines a probability object.

    Parameters:
    p : dictionary, float

    Probability 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

    Methods

    __repr__() Create a pandas table of the probability data.
    get_p() Return complete probability dictionary.
    get_p_day(day) Return probability for a day.
    get_p_hour(day, hour) Return probability for an hour.
    set_p(p) Set complete probability dictionary.
    set_p_day(day, val) Set probability for a day.
    set_p_hour(day, hour, val) Set probability for an hour.

    Back to top

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