0.0.113
A TimeHullSeries is an object that calculates a series of TimeHulls
(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. |
Gets the centroid
of each TimeHull
in the TimeHullSeries
Array
:
The
centroid
of each
TimeHull
in the
TimeHullSeries
. If
hull
or
hullIndex
are provided then truncate the array at the specified
hull
.
If
which
is provided then map only that property.
[getDistinctPoints description]
(Array)
[description]
Array
:
[description]
[TimeHull description]
(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] |