PolarCoverage

class PolarCoverage(val site: Site, val radials: Int, val rings: Int, val firstKm: Double, val ringStepKm: Double, val dbm: DoubleArray)(source)

Received power on a polar lattice centered on the site: radials bearings by rings ranges.

Coverage is computed in polar and only then rasterised, because a receiver's prediction needs the whole terrain profile back to the transmitter. On a radial every receiver shares one profile (the far one is the near one plus a few points), so a bearing's worth of predictions costs a single walk. Sampling the cartesian grid directly re-walks a profile per cell and re-reads the same terrain thousands of times over.

dbm is indexed bearing * rings + ring; ring r sits at firstKm + r * ringStepKm.

Constructors

Link copied to clipboard
constructor(site: Site, radials: Int, rings: Int, firstKm: Double, ringStepKm: Double, dbm: DoubleArray)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rings: Int
Link copied to clipboard
Link copied to clipboard
val site: Site

Functions

Link copied to clipboard
fun at(b: Int, r: Int): Double

Received power at ring r of bearing index b, which wraps.

Link copied to clipboard
fun ringKm(r: Int): Double

Distance of ring r from the site, km.

Link copied to clipboard
fun PolarCoverage.toGrid(resolution: Int = DEFAULT_GRID): CoverageGrid

Resample the polar lattice onto the regular grid the contour tracer needs.