initialize_map: Map Initializing

Description Usage Arguments Author(s) See Also Examples

View source: R/initialize_map.R

Description

Function of map initialization. This function perform required data preprocessing (see functions preprocessDataInit and preprocessData). This function defines an initial mapped coordinates.

Usage

1
init(map, data, type, reduce)

Arguments

map

The map is created by Map Geometry Functions (rect2Dmap)

data

The data is n-by-m matrix with m data points and n coordinates for each point (each column is one data point)

type

The type of initialization: principal component initialization (Pci) or Random.

reduce

is integer. If reduce is positive and is less than n then specified number of the first principal components are used. If 'reduce' is zero and m>n then the first n-1 principal components is used. If 'reduce' is positive and is greater or equal to n or 'reduce' is zero and n>m then dimensionality reduction is not performed. If reduce is negative then reduce PCs are calculated but dimensionality reduction is not performed

Author(s)

zahra Rezaei

See Also

rect2Dmap, preprocessDataInit , preprocessData

Examples

1
2
3
4
5
6
7
8
data <- BreastCancer_Data
map <- rect2Dmap(10,10)
Data_Map <- init(map, data,"Pci")

# return principal component of map and map coordinate in the data space

Data_Map$map$map.Pcs
Data_map$map$map.mapped

ZahraSajjad/ElasticMap documentation built on July 26, 2020, 12:38 a.m.