Skip to contents

-sum log P[frame, true timestamp]. r_i and t_i are 0-BASED indices into P.

Usage

morie_kamath_ch9_fom_loss(r_i, t_i, R = NULL, P = NULL)

Arguments

r_i

Frame indices.

t_i

Timestamp indices.

R

Count.

P

Frame-by-timestamp probability matrix.

Value

List with estimate, per_frame, n_reordered.

Examples

morie_kamath_ch9_fom_loss(c(0, 1), c(1, 0), P = matrix(c(0.2,
    0.6, 0.8, 0.4), 2))
#> $estimate
#> [1] 0.7339692
#> 
#> $per_frame
#> [1] 0.2231436 0.5108256
#> 
#> $n_reordered
#> [1] 2
#> 
#> $n
#> [1] 2
#> 
#> $method
#> [1] "frame order modelling loss (Kamath Eq 9.15)"
#>