Create HESeries from numeric vector.

HESeries.from_series(context, series, name = NULL, encrypt_vbit = FALSE, ...)

Arguments

context:

(Context) - Context of HESeries.

series:

(numeric vector) - Vector to create HESeries from.

name:

(Optional: string, default NULL) - Nmae of HESeries.

encrypt_vbit:

(Optional: logical, default FALSE) - Whether to encrypt valid bit of HESeries or not.

create_expo:

(Optional: logical, default TRUE) - Whether to create exponent. in other words, use data as floating point type

create_vbit_always:

(Optional: logical, default FALSE) - Whether to create vbits even if there is no missing.

create_norm:

(Optional: logical, default TRUE) - Whether to create normalization information if HESeries in encoded as numeric.

save_info_separately:

(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.

remove_outlier_type:

(Optional: string, default "none") - If "IQR", or "std", it removed outliers using IQR or standard deviation procedure, respectively.

remove_outlier_range:

(Optional: float, default "none") - If remove_outlier_range is specified, set limits to 1.5 times for IQR precedure, 3 times for std precedure.

categorical_encode_type:

(Optional: integer, default 1) - If 0, encode all cells together. If 1, encode each 7 cells. Otherwise, encode each 15 cells.

Value

HESeries, heaan_sdk.frame.series.HESeries.

Examples

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)
}