I want to work with 10k-100k data points as 16-tuples (x_1, ..., x_16). Most tuple elements are float in [0,1], along with one line and some ints.
I want to be able to do lightning-fast (preferably <10ms) mathematical operations at selected data points. For example: calculate the average value of x_15 for all points that satisfy: x_3 is in [0.3,0.4] and x_5> x_2.
My naive approach would be to do something like create a class for each tuple, and then do my math in the classes. For storage, I simply write all the tuples to a text file when the program is completed, and load them there when the program starts.
Is this possible, and this approach will be lightning fast?
source
share