https://docs.docker.com/engine/getstarted/step_one/
A faire:
- - finir les experiences (sur nb de classes, nb de curves / chunk, nb de procs)
+ - finir les experiences (sur nb de classes, nb de curves / chunk, nb de procs)
et sur d'autres architectures
- - interface matrice -> binaire
+ ==> code OK, source("wrapper.R") puis
+ serialize("build", "pathTo2010.csv","pathTo2010.bin")
+ ppam_exe("build",np,"pathTo2010.bin","nbSeriesPerChunk nbClusters 1 2")
+ C = getMedoids("build", "ppamResult.xml", "ppamFinalSeries.bin")
+ quelques_series = deserialize("pathTo2010.bin", rangs...)
+ #plot C ... et quelques_series ...
+ getDistor("buid", "ppamResult.xml", "pathTo2010.bin")
+
+- interface matrice -> binaire
+ OK
+
- courbe synchrone
+ ??
-Piste à explorer pour les comparaisons: H20
+Piste à explorer pour les comparaisons: H20
return ( curves[ranks,] ) # == medoids
}
-#TODO: check C function( is it correct?!)
getDistor = function(path=".", xmlResult = "ppamResult.xml",
finalSeries = "ppamFinalSeries.bin")
{
system(paste(path,"/ppam.exe classif ",finalSeries," ",xmlResult,sep=""))
}
+
+serialize = function(path=".", csvSeries, binSeries, byCols=0, nbSeries=0)
+{
+ system(paste(path,"/ppam.exe serialize ",csvSeries," ",binSeries," ",byCols," ",nbSeries,
+ sep=""))
+}
+
+deserialize = function(path=".", binSeries, csvSeries, ranks="-1")
+{
+ system(paste(path,"/ppam.exe deserialize ",binSeries," ",csvSeries," ",ranks,sep=""))
+ return ( read.table(csvSeries, sep=",") )
+}