I'm not very familiar with the mathematical jargon of probabilities, so I apologize in advance for any mistakes I might make.
Short version
I want to know how to compute the cumulative distribution of the weighted sum of $n$ uniform variables. Specifically, the sum $S$ is computed as
$$ S = \Sigma_{i = 1}^{n}\ R_i\ \times\ P^{n - 1} $$
Where $R_i$ is a uniform random variable in the range $[-1, 1]$ and $P$ a constant real number (normally, $0 < P < 1$).
Long version
Perlin noise is a type of gradient noise developed by Ken Perlin in 1983. It has many uses, including but not limited to: procedurally generating terrain, applying pseudo-random changes to a variable, and assisting in the creation of image textures.
When generating Perlin noise, it is common to overlap many octaves (each in the range$[-1, 1]$ to create more detailed looking noise. These octaves are assigned different weights. The parameter used to control this is called persistance. The weight of the $n$th octave is $persistance^{n - 1}$. Finally, this sum is normalized to bring the value back to a $[-1, 1]$ range.
One of the nice characteristics of Perlin noise is that it has a uniform distribution: each value in the range $[-1, 1]$ is equally likely. However, using many octaves ruins this, since the distribution becomes a normal distribution. Hence, I would like to tranform it into a uniform distribution using probability integral transform.
For this, the cumulative distribution function is needed. I've looked into Bates distribution and Irwin-Hall distribution, but they assume an equal weight for each of the variables being added.
Here is the question:
I want to know how to compute the cumulative distribution of the weighted sum of $n$ uniform variables. Specifically, the sum $S$ is computed as
$$ S = \Sigma_{i = 1}^{n}\ R_i\ \times\ P^{n - 1} $$
Where $R_i$ is a uniform random variable in the range $[-1, 1]$ and $P$ a constant real number (normally, $0 < P < 1$).
Final notes
I've lost all hope of implementing this in code, but I'm curious to know the formula anyway. Just for the sake of curiosity, my plan is to sample something like a million values, arrange them in a thousand "buckets" and compute the cumulative probability function with them.
