Members
attributeTable :d3.Selection.<any, any, HTMLElement, any>
Type:
- d3.Selection.<any, any, HTMLElement, any>
(constant) cellHeight :number
Type:
- number
(constant) cellWidth :number
Type:
- number
comparisonView :d3.Selection.<any, any, HTMLElement, any>
Type:
- d3.Selection.<any, any, HTMLElement, any>
comparisonViewOverlay :d3.Selection.<any, any, HTMLDivElement, any>
Type:
- d3.Selection.<any, any, HTMLDivElement, any>
comparisonViewOverlaySvg :d3.Selection.<any, any, SVGSVGElement, any>
Type:
- d3.Selection.<any, any, SVGSVGElement, any>
currentData :d3.DSVRowArray.<string>
Type:
- d3.DSVRowArray.<string>
currentDataDominated
currentDataNumericAttributes :Array.<string>
Type:
- Array.<string>
currentDataPath :string
Type:
- string
currentDataSkyline
currentDataSkylineDominationScores
Store the domination score of the skyline points (`scores` property).
Furthermore, store the min and max domination scores.
currentDataSkylineNumericOnly
currentDataSkylineNumericOnlyMinMax
Store the min and max values for each numeric attribute (column).
currentDataSkylineNumericOnlyRelativeRankings :Array.<Map>
Store the relative ranking of all skyline points per attribute.
Type:
- Array.<Map>
(constant) detailCellHeight :number
Type:
- number
divergingData :Array.<array>
Type:
- Array.<array>
(constant) MatrixColors :Array.<string>
Colors for the detail matrix in the tabular view
Type:
- Array.<string>
PointNameColumnIndex :number
The column index to use for tooltip titles
Type:
- number
projectionView :d3.Selection.<any, any, SVGSVGElement, any>
Type:
- d3.Selection.<any, any, SVGSVGElement, any>
projectionViewPositions :Array.<Array.<number>>
Type:
- Array.<Array.<number>>
projectionViewSelectedIndex :number
Type:
- number
projectionViewTooltip :d3.Selection.<any, any, HTMLDivElement, any>
Type:
- d3.Selection.<any, any, HTMLDivElement, any>
selectedSkylinePointIndices :Array.<number>
Type:
- Array.<number>
tabularView :d3.Selection.<any, any, HTMLElement, any>
Type:
- d3.Selection.<any, any, HTMLElement, any>
uniqueKey :string
Store the unique key or id field name of the data
Type:
- string
Methods
(async) buildAll()
Build all views. Should be called when new data is loaded or
if the current data (or its layout) has changed
(e.g. when rearranging the attribute table).
(async) buildAttributeTable()
Build the attribute table.
At first, any existing entries are removed and then
the table is filled with the attributes of the currently
loaded data.
(async) buildComparisonView()
Build the comparison view.
(async) buildProjectionView()
Build the projection view.
DISCLAIMER: The code for the creation of the t-SNE algorithm was inspired by
https://bl.ocks.org/Fil/b07d09162377827f1b3e266c43de6d2a and
https://bl.ocks.org/Fil/33066cb4f74d35a737355f3b7a2c26b1.
(async) buildTabularView()
Build the tabular view.
buildTabularViewTable(table) → {columns}
Build the table of the tabular view
Parameters:
Name | Type | Description |
---|---|---|
table |
table | The table to build the header for |
Returns:
Returns the columns of the table
- Type
- columns
buildTabularViewTableBody(table, columns) → {columns}
Build the body of the tabular view table
Parameters:
Name | Type | Description |
---|---|---|
table |
table | The table to build the body for |
columns |
columns | The columns of the table |
Returns:
Returns the rows of the body
- Type
- columns
(async) calcDivergingData()
Calculate differences between the given point and all others
for the current attribute (column) and remember the index of
the point for later highlighting. The calculation is according
to the papers equation in section 6.2 Tabular View
(async) calculateSkylinePoints()
Calculate the skyline points of the currently loaded data.
createDetailMatrix(dataset, row, key)
Creates the detail matrix of an table entry below it
Parameters:
Name | Type | Description |
---|---|---|
dataset |
The dataset to use | |
row |
The table row where the matrix should be appended | |
key |
The unique key of the row in the data |
determineDecisiveSubspaces(skyline, subspace, parentSubspace)
Determine decisive subspaces for every skyline point.
The algorithm is based on:
J. Pei, W. Jin, M. Ester, and Y. Tao. Catching the best views of skyline:
A semantic approach based on decisive subspaces. In Proceedings of the
31st International Conference on Very Large Data Bases, pages 253–264.
VLDB Endowment, 2005
Parameters:
Name | Type | Description |
---|---|---|
skyline |
The current skyline of all points | |
subspace |
The subspace to search | |
parentSubspace |
The subspace of the parent |
(async) disablePlaceholders()
Disable all placeholders.
dominates(point1, point2) → {boolean}
Checks if `point1` dominates `point2`.
Parameters:
Name | Type | Description |
---|---|---|
point1 |
d3.DSVRowString.<string> | Dominating point |
point2 |
d3.DSVRowString.<string> | Dominated point |
Returns:
true, if `point1` dominates `point2`.
- Type
- boolean
(async) drawProjectionView(update, end)
Draw the projection view with positions given in projectionViewPositions.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
update |
boolean | true | If true, the projection view gets updated. If false, the projection view gets recreated. |
end |
boolean | false | If true, all listeners are added (false by default to increase performance during simulation). |
euclideanDistance(vec1, vec2) → {number}
Calculates the euclidean distance between two vectors.
Parameters:
Name | Type | Description |
---|---|---|
vec1 |
Array.<number> | |
vec2 |
Array.<number> |
Returns:
euclidean distance
- Type
- number
filterData(key, value, arg) → {boolean}
Filter a key/value pair according to filter string
Parameters:
Name | Type | Description |
---|---|---|
key |
The key, i.e column | |
value |
The value, i.e value in column | |
arg |
The filter argument (col = val, col < val, col > val) |
Returns:
- Type
- boolean
findMinMax(column) → {Object}
Find the minimum and maximum value of the column of the current data.
Parameters:
Name | Type | Description |
---|---|---|
column |
string | Name of the column |
Returns:
Minimum and maximum value of the column.
- Type
- Object
getProjectionViewProps() → {Object}
Calculates the properties needed to build, draw and process the projeciton view.
Returns:
projection view properties
- Type
- Object
(async) init()
Perform initial configuration.
isNumericAttribute(column) → {boolean}
Check if the column of the current data is numeric.
Parameters:
Name | Type | Description |
---|---|---|
column |
string | Name of the column |
Returns:
Returns true, if the column is numeric.
- Type
- boolean
(async) loadData(filepath)
Load new data. New data is only loaded, if it is not already loaded.
Parameters:
Name | Type | Description |
---|---|---|
filepath |
string | Path to the csv-file that contains the new data. |
selectSkylinePoint(skylinePointIndex)
Selects or deselects a skyline point. A maximum of 4 points can be selected.
Parameters:
Name | Type | Description |
---|---|---|
skylinePointIndex |
d3.DSVRowString.<string> | Index of the skyline point the shall be de-/selected |