New answers tagged

3

The difference is that in your first example, f doesn't evaluate to anything, only f[x] does. For your second example however, l is already evaluated to the list of values. There are various ways to go about this, here are some: l = RandomReal[{0, 1}, 20]; m = RandomReal[{0, 1}, 20]; Table[Histogram[ReleaseHold@p, PlotLabel -> p], {p, {HoldForm[l], ...


1

A bit late in the game, If you want a more 'purist' approach, you could also use HistogramList to extract the points and then fit using an arbitrary function. SampleData = RandomVariate[RayleighDistribution[3], 5000]; binSize = #[[1, 2]] - #[[1, 1]] &@HistogramList[SampleData]; SampleDataP = {#[[1, 2 ;;]] - 0.5 binSize, #[[2]]}\[Transpose] &@ ...


Top 50 recent answers are included