dopplershift: dopplershift

View source: R/4_misc_dopplershift.R

dopplershiftR Documentation

dopplershift

Description

Calculates the doppler shift. Input velocity, frequency. The output gives the new frequency and the frequency shift S2 (time shifted sound), Tadd (time added), Time (time)

Usage

dopplershift(v1 = 10, v2 = 0, c = 340, freq = 300, direction = "towards")

Arguments

v1

speed of first one

v2

speed of second one

direction

specify the direction as towards or away from each other

f

frequency

Examples

dopplershift(v1 = 10, v2 = 0, c = 343, freq = 300, direction = "towards")
$Frequency
[1] 308.7464

$`Percent frequency shift`
[1] 2.915452


jzeyl/AcousticCalcs documentation built on Jan. 26, 2023, 4:22 p.m.