Description Usage Arguments Value
Efficiently calculates the gain in a one-dimensional shift in mean and variance scenario.
1 |
x |
Array with entries that are assumed to have a shift in mean and variance at some split point. |
alpha |
array of segment boundaries |
train_fold |
array containing indices in training fold |
An array on length length(x)
with gains resulting from splitting at that specific split point.
The negative gaussian loglikelihood of observations x for estimated mean and variance is -n/2 * (log(2 π \hatσ^2) + 1).
The gaussian maximum likelihood estimate \hatσ^2 is (sum(x^2) - sum(x)^2/length(x))/length(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.