Description Usage Arguments Value Examples

Function to calculate Adaptive bandwidths according to Abramson’s smoothing regimen.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ```
adaptive_bw(
grid,
events,
lines,
bw,
trim_bw,
method,
kernel_name,
max_depth,
tol,
digits,
sparse,
verbose
)
``` |

`grid` |
A spatial grid to split the data within |

`events` |
A spatialPointsDataFrame of the events points |

`lines` |
A SpatialLinesDataFrame representing the network |

`bw` |
The fixed kernel bandwidth |

`trim_bw` |
The maximum size of local bandiwidths |

`method` |
The method to use when calculating the NKDE |

`kernel_name` |
The name of the kernel to use |

`max_depth` |
The maximum recursion depth |

`tol` |
A float indicating the spatial tolerance when snapping events on lines |

`digits` |
The number of digits to keep |

`sparse` |
A Boolean indicating if sparse matrix should be used |

`verbose` |
A Boolean indicating if update messages should be printed |

A vector with the local bandwidths

1 | ```
#This is an internal function, no example provided
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.