commentaire sur la classification automatique

This commit is contained in:
2024-01-29 20:28:12 +01:00
parent 3c198659e8
commit cdb520e032
+8
View File
@@ -35,6 +35,9 @@ function DrawBlock($the_block, $vImage, $parametres)
$data = blockchain::getTransactionData($the_block, $type);
/*
* Limiter à 42 rectangles
*/
usort($data, 'tri');
$n=0;
@@ -47,6 +50,11 @@ function DrawBlock($the_block, $vImage, $parametres)
usort($data, 'tri');
/*
* TODO : Faire une classification automatique
* C'est à dire classer toutes les transactions en 42 classes
*/
$treemap = new Treemap($data, $width, $height);
$map = $treemap->getMap();
$m = count($map);