Hi(adsbygoogle = window.adsbygoogle || []).push({});

Say I have a data set (x_i, y_i) such as of the form

{

{4.4077, 8.41282*10^-7},

{9.39964, 3.3636*10^-6},

{14.3781, 7.56237*10^-6},

{19.3462, 0.00001343},

{24.3073, 0.0000209557},

}

The first coordinate is time, the second a weight. The sum of the

weights equal 1, so I am dealing with a probability density function.

I want to bin all the data points such that data points with their x-

coordinates within some range delta_x are binned together, and the

total y-coordinate of that bin should be the sum of all the y's of the

data points in the respective bin. So basically something like a

histogram.

Is there a function for doing this in Mathematica?

Best regards.

Niles.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica: Binning 2D data

Loading...

Similar Threads - Mathematica Binning data | Date |
---|---|

Mathematica Cannot do the integral of the Hyper-geometric function? | Sunday at 9:46 AM |

Mathematica Cannot Plot This Function in Mathematica | Feb 26, 2018 |

Mathematica While Loop in Mathematica | Feb 25, 2018 |

Mathematica Mathematica Real Part | Feb 24, 2018 |

Using mathematica to arrange data into Bins for plotting | Mar 21, 2015 |

**Physics Forums - The Fusion of Science and Community**