getSnapshots: Produce time sequenced pitch locations from PITCHf/x...

Description Usage Arguments Value References

Description

This function generates the x, y and z locations used in animateFX and interactiveFX.

Usage

1
getSnapshots(data, interval = 0.01)

Arguments

data

The nine PITCHf/x parameters used to determine the location of a pitch at a given time.

interval

the amount of time between 'snapshots'

Value

Return a three dimensional array. The third dimension corresponds to different 'snapshots' of locations.

References

http://baseball.physics.illinois.edu/KaganPitchfx.pdf


pitchRx documentation built on May 2, 2019, 5:56 a.m.