Skip to contents

Helper function that deduces (likely to be a reminder) partition scheme from $slidings of Ldk objects.

Usage

slidings_scheme(Coo)

Arguments

Coo

an Ldk object

Value

a list with two components: n the number of partition; id

their position. Or a NULL if no slidings are defined

See also

Other ldk/slidings methods: add_ldk(), def_ldk(), def_slidings(), get_ldk(), get_slidings(), rearrange_ldk()

Examples

# no slidings defined a NULL is returned with a message
slidings_scheme(wings)
#> no sliding defined
#> NULL

# slidings defined
slidings_scheme(chaff)
#> $n
#> [1] 4
#> 
#> $id
#>            start end
#> partition1    13  52
#> partition2    53  92
#> partition3    93 132
#> partition4   133 172
#>