benchmarks/scripts/generator.py
def create_histograms(dataset: list, location: list) -> (tuple, tuple):
    """Create and save the histograms referent to the given dataset.
    Creates one with Intervals starting times named 'Start-times' &
    creates another with the Intervals durations named 'Durations"""
    starts = []
    durations = []

    for [start, end] in dataset:
        starts.append(start)
        durations.append(end - start)

    plt.hist(starts, alpha=0.8, bins="rice", label='Start times',
             rwidth=0.8 if len(dataset) < 20000 else 0.6)
    plt.legend(loc='upper right')
    save_plot("Start-times", location)

    plt.clf()

    plt.hist(durations, alpha=0.8,
             label='Durations', color='orange', rwidth=0.8)
    plt.legend(loc='upper right')
    save_plot("Durations", location)

    plt.clf()
Create and save the histograms referent to the given dataset.
    Creates one with Intervals starting times named 'Start-times' &
    creates another with the Intervals durations named 'Durations
Create and save the histograms referent to the given dataset.
Creates one with Intervals starting times named 'Start-times' &
creates another with the Intervals durations named 'Durations
Create and save the histograms referent to the given dataset . Creates one with Intervals starting times named ' Start - times ' & creates another with the Intervals durations named ' Durations
def create_histograms(dataset: list, location: list) -> (tuple, tuple):
    starts = []
    durations = []
    for [start, end] in dataset:
        starts.append(start)
        durations.append(end - start)
    plt.hist(starts, alpha=0.8, bins="rice", label='Start times',
             rwidth=0.8 if len(dataset) < 20000 else 0.6)
    plt.legend(loc='upper right')
    save_plot("Start-times", location)
    plt.clf()
    plt.hist(durations, alpha=0.8,
             label='Durations', color='orange', rwidth=0.8)
    plt.legend(loc='upper right')
    save_plot("Durations", location)
    plt.clf()
def create_histograms ( dataset : list , location : list ) -> ( tuple , tuple ) : starts = [ ] durations = [ ] for [ start , end ] in dataset : starts . append ( start ) durations . append ( end - start ) plt . hist ( starts , alpha = 0.8 , bins = "rice" , label = 'Start times' , rwidth = 0.8 if len ( dataset ) < 20000 else 0.6 ) plt . legend ( loc = 'upper right' ) save_plot ( "Start-times" , location ) plt . clf ( ) plt . hist ( durations , alpha = 0.8 , label = 'Durations' , color = 'orange' , rwidth = 0.8 ) plt . legend ( loc = 'upper right' ) save_plot ( "Durations" , location ) plt . clf ( )
Create and save the histograms referent to the given dataset.
Create and save the histograms referent to the given dataset .
"""Create and save the histograms referent to the given dataset.
    Creates one with Intervals starting times named 'Start-times' &
    creates another with the Intervals durations named 'Durations"""
dataset
list
location
list