Linked Questions

2
votes
1answer
373 views

Coarse-graining and/or sorting of a list of arbitrary triades {x,y,z} in the (x,y) plane [duplicate]

In general my question is related to an approach to make an interpolation of a data which is not on a regular mesh. Another aspect of this question has already been discussed after my question "...
0
votes
1answer
388 views

Partitioning a list of 2D points into sublists that fit into non-overlapping equal-sized squares [duplicate]

I have a set of {x, y} coordinates, for example: ...
527
votes
19answers
132k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
7
votes
6answers
432 views

Total by a criteria

I am developing a weighted KNN algorithm. In a step, I need to do the sum of weights of each class. For example: ...
8
votes
5answers
911 views

How to sum over duplicates?

I have a list of the form: {{1, 0, 1}, {2, 1, 2}, {1, 0, 3}, {2, 4, 2}, {2, 1, -1}, {1, 0 ,0}} that I would like to sort such that I calculate the sum over the ...
15
votes
2answers
510 views

Additive SparseArray Assembly

The goal is to assemble a SparseArray in an additive fashion. Let us assume we have a large List of indices (some will be ...
6
votes
4answers
2k views

Calculate mean of values in bins

Problem description: I have a list of $\{x,y\}$ pairs. I'd like to divide $x$ into equal[*] bins, say $bx_1, bx_2, \ldots$, calculate $\left<y\right>$ for every bin and then plot the bin values ...
2
votes
5answers
315 views

Returning all positions for all different occurences of elements in a list

Is there way to construct oneliner as pure function(s), so that I enter mylist only on one place - on the end of line. And that function return the same result as ...
3
votes
2answers
1k views

List density plot for non-uniform data

I am trying to make a density plot to show the data that can found here. I tried with GNUplot previously. The result of GNUplot density plot for a rectangular set of data. I am able to do this only ...
5
votes
1answer
801 views

Efficiently generating histograms with large numbers of bins

I'm trying to generate a histogram for a large data set with the following lines of code: ...
4
votes
2answers
190 views

3d points projected to y-z plane and colorized according x-velocity using a grid for averaging

This Question is related to this solved by @kglr and also this solved by @Henrik Schumacher. I have a set of 3d positions and velocities of particles, and want to colorize the projected positions ...
1
vote
1answer
355 views

Partitioning a data set of two-dimensional coordinates into subsets of coordinates underlying non-overlapping tiles of a bounding box

Image I have a list of coordinates of the form: ...
2
votes
0answers
78 views

Matching list entries by two values, adding the third [duplicate]

I have data in form of: data={{1,1,3},{1,1,6},{2,1,7},{2,2,4},{2,1,1}}; I want to match the entries with the same first two elements and add the third element in ...