I was bored and sketched out this idea in pseudocode( I will try to turn it into C++ later) for taking a set of numeric data and manipulating it. I ran through it manually and it seems to put the data in a range [0, something]
count =
data[count] = { d_0, d_1, … , d_(count -1) }
sigma = $Σ_{a∈ℕ} data_a$
avg = sum / count
newData[count] = {}
for x in data
append (x · avg)/count to newData
What I am curious about, is if this "doodle" has any potential uses, or if it can be extended somehow?