HESeries.from_series.Rd
Create HESeries from numeric vector.
HESeries.from_series(context, series, name = NULL, encrypt_vbit = FALSE, ...)
(Context) - Context of HESeries.
(numeric vector) - Vector to create HESeries from.
(Optional: string, default NULL) - Nmae of HESeries.
(Optional: logical, default FALSE) - Whether to encrypt valid bit of HESeries or not.
(Optional: logical, default TRUE) - Whether to create exponent. in other words, use data as floating point type
(Optional: logical, default FALSE) - Whether to create vbits even if there is no missing.
(Optional: logical, default TRUE) - Whether to create normalization information if HESeries in encoded as numeric.
(Optional: logical, default TRUE) - Whether to store data and information separately. If false, and there is available space to save information, data and information are stored in same ciphertext/message.
(Optional: string, default "none") - If "IQR", or "std", it removed outliers using IQR or standard deviation procedure, respectively.
(Optional: float, default "none") - If remove_outlier_range is specified, set limits to 1.5 times for IQR precedure, 3 times for std precedure.
(Optional: integer, default 1) - If 0, encode all cells together. If 1, encode each 7 cells. Otherwise, encode each 15 cells.
HESeries, heaan_sdk.frame.series.HESeries.
if (FALSE) {
params <- heaan_sdk.HEParameter("FGb")
context <- heaan_sdk.Context(
params,
key_dir_path = "keys",
load_keys = "all",
generate_keys = FALSE)
series_1 <- c(1, 2, 3, 4, 5)
series_2 <- c(1L, 2L, 3L, 4L, 5L)
series_3 <- as.factor(c("1", "1", "2", "3", "1"))
series_4 <- c(TRUE, TRUE, FALSE, FALSE, TRUE)
he_series_1 <- HESeries.from_series(context, series_1, name = "s1")
he_series_2 <- HESeries.from_series(context, series_2, encrypt_vbit = TRUE)
he_series_3 <- HESeries.from_series(context, series_3)
he_series_4 <- HESeries.from_series(context, series_4)
}