Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rad

Function to convert between Hertz and Radians


Description

convert between Hertz and Radians

Usage

rad(vec, samfreq = 20000, hz = TRUE)

Arguments

vec

A numerical vector of frequencies in Hz or radians

samfreq

A single element numerical vector of the sampling frequency. Defaults to 20000 Hz

hz

Logical. If T, convert from Hz to radians otherwise from radians to hz

Author(s)

Jonathan Harrington

See Also

Examples

# 4000 Hz in radians at a sampling frequency of 8000 Hz
rad(4000, 8000)
# pi/2 and pi/4  radians in Hz at a sampling frequency of 10000 Hz
rad(c(pi/2, pi/4), 10000, FALSE)

emuR

Main Package of the EMU Speech Database Management System

v2.2.0
GPL (>= 2)
Authors
Raphael Winkelmann [aut, cre], Klaus Jaensch [aut, ctb], Steve Cassidy [aut, ctb], Jonathan Harrington [aut, ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.