X-Git-Url: https://git.auder.net/?p=epclust.git;a=blobdiff_plain;f=epclust%2FR%2Futils.R;h=e0f25ece5f4ba50a3d9845f7f1f13763b0e10457;hp=5c09b568a9830ccac0f7b8a2a92a9836905decfc;hb=48108c3999d28d973443fa5e78f73a0a9f2bfc07;hpb=c33af7e44b802c182ea92c79b56a72cae3007301 diff --git a/epclust/R/utils.R b/epclust/R/utils.R index 5c09b56..e0f25ec 100644 --- a/epclust/R/utils.R +++ b/epclust/R/utils.R @@ -10,8 +10,9 @@ toInteger <- function(x, condition) x } -serialize = function(coeffs, file, append) +writeCoeffs = function(coeffs) { + file = ".coeffs" #......... #C function (from data.frame, type of IDs ??! force integers ? [yes]) #return raw vector @@ -19,9 +20,10 @@ serialize = function(coeffs, file, append) #TODO: appendCoeffs() en C --> serialize et append to file } -deserialize = function(file, range, serie_length) +readCoeffs = function(indices) { #...... + file = ".coeffs" #C function (from file name) } @@ -29,8 +31,3 @@ getSeries(data, rank=NULL, id=NULL) { #TODO: } - -getCoeffs(.....) #FROM BINARY FILE !!! -{ - -}