vector.space: Computes properties for the vowel space constructed by the...

View source: R/vfd.R

vector.spaceR Documentation

Computes properties for the vowel space constructed by the supplied F1 and F2 formant values.

Description

Computes properties for the vowel space constructed by the supplied F1 and F2 formant values.

Usage

vector.space(
  f1,
  f2,
  na.rm = TRUE,
  output = c("center", "norms", "angles", "whichvowelcorner", "corners", "meanvectors"),
  center = NULL,
  center.method = "wcentroid",
  minimum.no.vectors = 3
)

Arguments

f1

A vector of F1 values.

f2

A vector of F2 values.

na.rm

Boolean value specifying whether missing values should be removed. Defaults to TRUE.

output

List of vowel properties to be returned. Could be one or many of "center","norms","angles","whichvowelcorner","corners","meanvectors","areas" or "vsa". All values are returned by default.

center

A vector (F2,F1) specifying the vowel space center to be used. If NULL, the center will be calculated using the vowelspace.center function.

center.method

The method to use in the calculation of vowel space center. See vowelspace.center for details.

minimum.no.vectors

The minimum number of vectors needed for a mean vector to be computed.

Value

A list containing the properties specified by the "output" argument.Could be one or many of

F1 center

Computed vowel space center vowel's F_1 values

F2 center

Computed vowel space center vowel's F_2 values

Vector norms

Length of all supplied vowel vectors

Vector angles

Angles of all supplied vowel vectors

Which vowel corner

A factor indicating in which corner of the vowel space each vowel is located.

Corner vowels

Data frame of corner vowels F_1 and F_2 values

Mean vectors

Data frame of corner vowels as vector norms and angles

Triangle areas

Individual triangle areas

VSA(n)

Vowel space area. The 'n' indicates the number of corners in the vowel space.

Author(s)

Fredrik Karlsson

References

\insertRef

Karlsson:2012vbarticulated

Examples


vsdata <- data.frame(F1=c(rnorm(100,mean=300,sd=100),rnorm(100,mean=600,sd=100),rnorm(100,mean=600,sd=100),rnorm(100,mean=300,sd=100)),F2=c(rnorm(100,mean=2200,sd=200),rnorm(100,mean=1700,sd=200),rnorm(100,mean=1000,sd=200),rnorm(100,mean=900,sd=200)),Vowel=rep(c("i","ae","a","u"),c(100,100,100,100)))
outvs <- vector.space(vsdata$F1,vsdata$F2)
summary(outvs)


FredrikKarlssonSpeech/articulated documentation built on July 20, 2023, 8:20 a.m.