I hope I'm using the right terminology below.
I have access to the moments statistics of a large sample. That is, I have $\sum(x)$, $\sum(x^2)$, ..., $\sum(x^k)$. I also have access to max and min, and I can probably access some other information (e.g., the log-moments).
I want to estimate the Information entropy that is usually computed as
$h[f] = \operatorname{E}[-\ln (f(x))] = -\int_\mathbb X f(x) \ln (f(x))\, dx$
Is this possible? What could be the pseudocode for that operation?
Edit: One thing that I overlooked is the difference between the continuous case and the discrete case. In the discrete case the Entropy is computed
$H(X) = \sum_{i=1}^n {\mathrm{P}(x_i)\,\mathrm{I}(x_i)} = -\sum_{i=1}^n {\mathrm{P}(x_i) \log_b \mathrm{P}(x_i)}$
Example: Assuming my variable is accounting for the number of people with height $y$. This is a discrete case, where I can have for example $x=153cm$ and $f(x)=24$, and $f(x)=0$ for $x=0cm$.
This case should be different.