Description Usage Arguments Author(s) Examples
Compute the weighted Poisson loss function, which is seg.mean  count * log(seg.mean). The edge case is when the mean is zero, in which case the probability mass function takes a value of 1 when the data is 0 (and 0 otherwise). Thus the loglikelihood of a maximum likelihood segment with mean zero must be zero.
1  PoissonLoss(count, seg.mean, weight = 1)

count 

seg.mean 

weight 
Toby Dylan Hocking, Guillem Rigaill
1 2 3 4  PoissonLoss(1, 1)
PoissonLoss(0, 0)
PoissonLoss(1, 0)
PoissonLoss(0, 1)

[1] 1
[1] 0
[1] Inf
[1] 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.