Displaying 2 results from an estimated 2 matches for "kml1".
Did you mean:
3ml1
2014 Mar 19
1
Memcheck: Invalid read of size 4
...a memory issue that I do not manage to understand. The Memtest notes is here:
<http://www.stats.ox.ac.uk/pub/bdr/memtests/valgrind/kml-Ex.Rout>
Here is the message that I get from Memtest
--- 8< ----------------
~ Fast KmL ~
==27283== Invalid read of size 4
==27283== at 0x10C5DF28: kml1 (kml.c:183)
...
==27283== by 0x10C5DE4F: kml1 (kml.c:151)
...
==27283== at 0x10C5DF90: kml1 (kml.c:198)
--- 8< ----------------
Here is the function kml1 from the file kml.c (I add some comments to tag the lines 151, 183 and 198)
--- 8< ----------------
void kml1(double *traj, int *n...
2009 Sep 09
1
Package that does not work until I re write the exactly the same code
...nInitialise(nbClusters = iNbClusters,
method = startingCond[iRedraw], lengthPart = nbId,
matrixDist = as.matrix(dist(trajNoNA, method =
distanceStartingCond)))
clust <- rep(NA, nbIdFull)
if (fast) {
resultKml <- .C("kml1", as.double(t(trajNoNA)),
iNbInd = as.integer(nbId), iNbTime = as.integer(nbTime),
iNbCluster = as.integer(iNbClusters), maxIt =
as.integer(maxIt),
distance = as.integer(distInt), power =
as.numeric(power),
vClusterAffec...