Quick actions

cmd+k|ctrl+k

Navigation

Languages

1 Histogram ToDo

Snippet info

Language

Python

Visibility

public

Author

johan.van.breda

Created

2019-03-13T10:46:12Z

Updated

2019-03-13T11:29:13Z

import numpy as np

data = np.random.randint(low=1,high=10, size=100)

print('data = ' + str(data))

# histogram of the data, number of elements with value 1,2,...,10 
dist = None
print('dist = ' + str(dist))

# get the  number of elements in the histogram, this should be 100
N = None
print('N = ' + str(N))
INFO