Global

Methods

binSliderOnChange()

Called if the slider for the number of histogram bins is changed. Recalculates histograms and CDF arrays
Source:

calcAndSaveQuartilesAndRanges()

saves ranges for each map;
Source:

calculateAndSaveCDFs()

Calculates and saves the CDFs (cumulative density functions) used for histogram normalization. This is done for each map data individually as well as for all concatenated data.
Source:

calculateCDF(hist)

returns a cumulative distribution function of a histogram.
Parameters:
Name Type Description
hist Array the histogram as an array.
Source:
Returns:
Array [0,1] normalized cdf as an array the same size as hist.

fill()

Fills all maps and color scales with a new color and updates the boxplots as well
Source:

hatFunc(x, m, d)

function to map values for localization tasks to brightness according to a head function
Parameters:
Name Type Description
x value to be mapped to a brightness
m the values that will mapped to the highest brightess
d steepness of the highlight. The smaller the value the further away from m can x be while still being highlited
Source:

histogram(data, num_bins)

returns a histogram of the provided data
Parameters:
Name Type Description
data Array the dataset.
num_bins number of bins used for building the histogram.
Source:

initInputValues()

Sets up Listeners for input elements and assigns initial values
Source:

initMaps()

Initializes all maps, legends and boxplots and and starts aynchronous loading of map data
Source:

mapSegmentation(inputValue)

normalizes an inputValue and, if user choses a segmentation, maps it to the closest segment value.
Parameters:
Name Type Description
inputValue the value to be normalized. Must lay between minVal and maxVal.
Source:

normalDistr(x, mean, StdDev)

function to map values for localization tasks to brightness according to a normal distribution
Parameters:
Name Type Description
x value to be mapped to a brightness
mean Mean parameter of the ndf
StdDev Standard Deviation parameter of the ndf
Source:

normalizeAllDataAsOne()

normalizes all four concatenated map data and saves the result into normalizedVotesAll
Source:

normalizeAllDataIndividually()

normalizes all four map data for its own and saves the result into normalizedVotesInvividual array.
Source:

normalizeData(data) → {Array}

normalizes data to [0,1] for further use in histograms and box-whisker parameters.
Parameters:
Name Type Description
data Array ALL data that will be represented in the svg map.
Source:
Returns:
normalized data to [0,1].
Type
Array

onColorSchemeChanged()

Called if the Color-Mode-selection is changed. It accordingly hides or shows range sliders for bin numbers in case of Histogram Normalization mode and redraws the maps.
Source:

onIdentificationModeChanged()

Called if the Task-Selection is changed from identification to localization and vice versa. It accordingly hides or shows range sliders for adjusting parameters for localization and redraws the maps.
Source:

onLocalizationSlidersChanged()

Called if the parameter range sliders are changed. It saves the values and redraws the maps.
Source:

onScopeChanged()

Called if the Scope-selection is changed. It saves the state and redraws the maps.
Source:

onSegmentationChanged()

Called if the Segmentation-mode changed. It saves the state redraws the maps.
Source:

segSliderOnChange()

Called if the segmentation-slider changed. It saves the state and redraws the maps.
Source:

setVotes(i) → {function}

Returns a function to set votes of a specific submap referenced by the mapindex i
Parameters:
Name Type Description
i integer the mapindex for which the vote should be set
Source:
Returns:
the votes setting function
Type
function

updateColors()

Initiates a color update and shows a waiting spinner in the meantime
Source:

valueToColor(inputValue, mapindex)

Maps a inputValue value of the map or the legend (current range: 0-1) to a color using the color scheme selected by the user.
Parameters:
Name Type Description
inputValue the value to be mapped. Does not need to be normalized, but must lay between minVal and maxVal.
mapindex the index of the map/dataset that the datapoint that is rendered with this call is part of.
Source:

valueToColor_boxWhisk(inputValue, mapIndex, sorted_data_asc)

maps a value to a color according to a box-whisker plot
Parameters:
Name Type Description
inputValue value to be mapped to a brightness
mapIndex the index of the map/dataset that the datapoint that is rendered with this call is part of.
sorted_data_asc the sorted dataset of data for calcuation of the box whisker parameters, normalized to [0,1]
Source:

valueToColor_compare(inputValue)

Maps a value to a HSL value by using the Method proposed by Tominski et al.
Parameters:
Name Type Description
inputValue value to be mapped; between 0 and 1.
Source:

valueToColor_histNorm(inputValue, cdfInput)

maps a value to a color according to a normalized histogram
Parameters:
Name Type Description
inputValue value to be mapped to a brightness
cdfInput a pre-calculated cumulative density function of ALL input data
Source:

valueToColor_linear(inputValue)

Converts a (possibly alreadly mapped) value/brightness in the interval [0,1] to a color. This conversion is either linear in HSL, or a hat function if "localization" is selected by the user.
Parameters:
Name Type Description
inputValue value/brightness to be mapped to a color
Source: