I am currently calculating several columns of data using a function similar to this one.
DataTable data = RetrieveDataTable();
var value = data.Compute(
"AVG(Important_Variable)",
"(Distance > 1230 and Distance < 1760) OR (Distance > 4710 and Distance < 5400)"
);
This is working but it is slow. Is there a faster way to achieve the same thing? Different data types are perfectly ok, I am not married to DataTables.