Hi Paulo,
To calculate the mean and variance of the data for insertion into the expander and patcher, you'll want to utilize the functor "Lm Calc Mean Patch Sizes And Standard Deviations" found within the "landscape metrics (legacy)" folder, which is located inside the "landscape metrics" directory.
If you have any trouble finding it, please let me know!