Skip to contents

Get an empirical distribution of entropy for a given number of grids assuming evenly spread

Usage

get_entropy_null(obs_grid, n_sims, n_grid)

Arguments

obs_grid

observed grid for each observation

n_sims

the number of simulations to do

n_grid

the number of grid cells

Value

a vector of entropy for each permutations

Examples

get_entropy_null(1:16, n_sims = 10, n_grid = 16)
#>  [1] 0.9641447 0.8981105 0.8512585 0.9030900 0.9641447 0.9030900 0.9265160
#>  [8] 1.0536050 1.0159762 1.0536050