PoissonLoss: PoissonLoss

Description Usage Arguments Author(s) Examples

Description

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 log-likelihood of a maximum likelihood segment with mean zero must be zero.

Usage

1
PoissonLoss(count, seg.mean, weight = 1)

Arguments

count
seg.mean
weight

Author(s)

Toby Dylan Hocking, Guillem Rigaill

Examples

1
2
3
4

Example output

[1] 1
[1] 0
[1] Inf
[1] 1

PeakSegDP documentation built on Aug. 16, 2017, 1:02 a.m.