Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A way to recuperate data computed to construct an histogram

Yet perhaps another stupid question. Suppose I have this list

l=[0.0140762463343107, 0.0169947599490158, 0.0337837837837837, 0.0428954423592493, 0.33201581027668, 2.12334293948126, 2.26110363391655, 2.31799072976179, 2.4, 2.4467213114754, 2.58496888463381, 2.84483799557253, 3.07658157602664, 3.52941176470588, 3.59055118110235, 3.98892319741569, 4.54204921042965, 5.2955121616992, 5.4228187919463, 5.51591413767577, 5.73473684210522, 5.79754492424352, 5.96317645083665, 6.20593427150806, 6.3873526875539, 7.33914828116983, 7.71784232365147, 7.99523323899119, 8.71183533447686, 8.87055016181231, 9.24526964779255, 9.62400201697626, 9.87703264094952, 10.1958123901446, 10.1967708364307, 11.3333333333333, 11.4822189119943, 11.6586306653809, 12.0161137527937, 12.0563942240104, 12.174049175799, 12.1871777410254, 12.2503008849558, 12.6799276672695, 12.6907333712336, 13.6000198157139, 13.6105116507772, 13.6797712651894, 13.7129263164838, 13.7486895312266, 13.7858301356857, 13.9378881987578, 14.0052200735556, 14.5935304990758, 15.243743718338, 15.6643948296122, 15.9103355625227, 16.2143114376842, 16.3116333805195, 16.4148806017491, 16.4320879120879, 17.3259259259259, 17.393689756832, 17.5690730127296, 17.9400755350399, 18.1041247484909, 18.5142857142857, 22.4320891547507, 22.5400833931806, 22.577347546951, 22.5787392533282, 22.9436764751772, 22.9961447088734, 23.2122830440588, 23.37796670209, 23.4286021389799, 23.7187098981948, 23.966981088829, 24.3882837195552, 24.4430450225593, 24.6685236768803, 24.706946652777, 25.0111360110326, 25.0732948429396, 25.1241482084102, 25.3178252637274, 26.0938396315892, 26.1959784318132, 26.3158778465734, 26.6227288920554, 27.0146341463415, 27.4462656200105, 27.9594116044675, 28.4286969253295, 28.8650698448323, 28.9113402061854, 28.9489880610353, 29.4060619420257, 30.1702127659575, 31.1066499372648, 31.2047952047952, 31.2647945040374, 31.750020864472, 32.1376717584539, 32.5861897665177, 32.7117581429886, 32.8888888888889, 33.0489255476379, 33.1844552795719, 33.4266550739038, 33.7423885263393, 34.3801424324137, 34.8561084374586, 35.2785617630002, 35.3938366410691, 35.4867326732673, 36.2440010746455, 36.2689075630251, 36.3004066012916, 36.9025738196748, 37.0636462962304, 37.4472839652919, 37.8, 37.8533724340177, 37.9154929577467, 38.2107383069478, 38.262, 38.6602443609023, 39.26011401882, 39.4420478553531, 39.6, 39.6889952153111, 42.7265315540515, 43.1752378658316, 43.9503300848789, 44.0102008288173, 44.196933885552, 44.2383608885283, 44.8483281506586, 45.2704091553013, 45.3051823416508, 45.5021848327684, 45.5339906590555, 46.286233781782, 46.6765634266256, 46.8739430542173, 46.8796035148926, 47.7633235417541, 47.7960339943343, 50.5080385852088, 50.5954198473282, 50.8262485748231, 51.4775457201602, 52.192162763262, 52.2057462868274, 52.4382241434292, 53.1062971349053, 53.7829287090561, 54.0517135234969, 54.5106040268457, 57.1255444044689, 57.4444444444444, 57.6061784344749, 59.0780301326736, 59.4537735849057, 64.0090812344803, 67.5488895138945, 70.128777923784, 70.198115900656, 71.2708710686643, 73.4782608695653, 73.8182827393486, 75.7883547891816, 80.3704626246715, 85.1457613805692, 85.9867143587123, 91.1553610503283, 91.9161412358134, 92.8309629284213, 93.5365814860904, 94.4061409630147, 96.3315068493154, 97.3072475247523, 98.1924004132708, 104.352257823134, 109.232252559726, 110.100890207715, 112.970414201183, 117.561989606533, 117.661202185792, 124.093251533742, 128.088036310696, 132.307036247335, 134.195284732994, 148.051764705883, 149.810454738631, 165.983348751156, 174.967741935484, 179.427447122479, 191.885057471263, 199.355973613487, 205.562790697674, 211.504643962847, 226.738334317779, 235.738090570476, 259.155875299759, 260.476900149031, 267.122718691001, 292, 309.46255506608, 365.142857142858, 376.425927758536, 378.045112781955, 385.915639195328, 436.942320819113, 487.223880597015, 533.60160965795, 570.580645161286, 773.923753665687, 1828.35399443527, 1921.33333333332, 3395.02702702703, 7025.60000000004]

If I ask sage to construct an histogram histogram(l, bins=20) there will be no problems. Is there a way to know the set of data histogram use to plot : that is the 'len' of the bins, the number of elements in each bin, which are those elements and the sum of the elements inside the bins, because all elements should be computed to plot the histogram ? Or, should I recompute all those informations by myself.