X-Git-Url: https://git.auder.net/?p=epclust.git;a=blobdiff_plain;f=epclust%2FR%2Futils.R;h=5c09b568a9830ccac0f7b8a2a92a9836905decfc;hp=6dcc2cdfca13d3c41ee5175e3f20ac549b83fe41;hb=c33af7e44b802c182ea92c79b56a72cae3007301;hpb=74f571a72fd63ae92466d944a9ab4a111d177121 diff --git a/epclust/R/utils.R b/epclust/R/utils.R index 6dcc2cd..5c09b56 100644 --- a/epclust/R/utils.R +++ b/epclust/R/utils.R @@ -10,25 +10,16 @@ toInteger <- function(x, condition) x } -#TODO: merge these 2 next ?! -serialize = function(coeffs) +serialize = function(coeffs, file, append) { #......... #C function (from data.frame, type of IDs ??! force integers ? [yes]) #return raw vector -} -appendBinary = function(.......) -{ #take raw vector, append it (binary mode) to a file #TODO: appendCoeffs() en C --> serialize et append to file } -#finalizeSerialization = function(...) -#{ -# #write number of series, and length of each... -#} - -deserialize = function(coeffs, range) +deserialize = function(file, range, serie_length) { #...... #C function (from file name)