TimeHullSeries

A TimeHullSeries is an object that calculates a series of TimeHulls

new TimeHullSeries(opt: Object)
Parameters
opt (Object) An options object
Name Description
opt.points Array Array of points. Points should include timestamp , x , and y properties. E.g. [{ timestamp: 0, x: 532, y: 354 }, { timestamp: 100, x: 432, y: 754 }]
opt.period Number The duration (milliseconds) over which convex hulls are computed. All TimeHull durations will be less than or equal to TimeHullSeries.period .
opt.timestep Number (default 0) The minimum amount of time required (milliseconds) between the endTime() of the last computed TimeHull and the endTime() of the next computed TimeHull .
opt.includeIncomplete Boolean (default false) Set to true to include the initial convex hulls that are less than TimeHullSeries.period .
opt.width Number (default 0) The width (px) of the area that the points were recorded in. This is not necessarily the width of a stimulus image, but it often is.
opt.height Number (default 0) The height (px) of the area that the points were recorded in. This is not necessarily the height of a stimulus image, but it often is.
Instance Members
getCoverageDurations()
getAverageCoverage()
getFinalCoverage()
getCentroidDistances(opt)
getAverageCentroidVelocity(opt)
getAverageVelocity(opt)
getCentroids(opt)
getDuration()
getHullDurations()
getEndPointIndex(startIndex)
getEndTime()
getHull(opt)
getHulls()
getStartPointIndex(endIndex)
getStartTime()

getDistinctPoints

[getDistinctPoints description]

getDistinctPoints(points: Array): Array
Parameters
points (Array) [description]
Returns
Array: [description]

TimeHull

[TimeHull description]

new TimeHull(opt: Object)
Parameters
opt (Object) An options object
Name Description
opt.seriesPoints Array All points in the TimeHullSeries
opt.startIndex Number (default 0) [description]
opt.endIndex Number (default opt.seriesPoints.length-1) [description]
opt.width Number (default 0) [description]
opt.height Number (default 0) [description]
Static Members
coordinatesToXY(points)
XYToCoordinates(points)
Instance Members
getArea(opt)
azimuth()
calculateCentroid(points)
getCentroid(opt)
getCoverage(opt)
coverageDuration(opt)
coveragePercent(opt)
distance(which?)
elapsedTime()
endTime()
getPoints(which?)
getSlicedPoints(which?)
lastPoint()
period()
getPolygon(opt)
startTime()
timestep()
velocity(which?)