Learn R Programming

kzfs (version 1.0.1.5)

getwave: Internal Function For Directional KZ Periodogram kzpdr

Description

A group of internal functions used by kzpdr function.

  • getaway is designed to extract data series along a given line in a 2D field.

  • agrid is to aggregate data based on given grid points.

  • a2d transfers 2D array to data frame. If input is data frame, it will return the original data frame.

  • df2mt transfers data frame to matrix.

Usage

getwave(df, angle)

a2d(a)

df2mt(df, scale)

agrid(df, scale, math = "mean")

Arguments

df

Data frame of signal values and positions.

angle

Direction or vector of directions in radians.

a

2D array for position and signal values.

scale

Vector for scale of each dimension. For example, for a x * y grid, the scale is c(1/x, 1/y).

math

Function to aggregate the data. Defaults to "mean".