commentaire sur la classification automatique
This commit is contained in:
@@ -35,6 +35,9 @@ function DrawBlock($the_block, $vImage, $parametres)
|
|||||||
|
|
||||||
$data = blockchain::getTransactionData($the_block, $type);
|
$data = blockchain::getTransactionData($the_block, $type);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Limiter à 42 rectangles
|
||||||
|
*/
|
||||||
usort($data, 'tri');
|
usort($data, 'tri');
|
||||||
|
|
||||||
$n=0;
|
$n=0;
|
||||||
@@ -47,6 +50,11 @@ function DrawBlock($the_block, $vImage, $parametres)
|
|||||||
|
|
||||||
usort($data, 'tri');
|
usort($data, 'tri');
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TODO : Faire une classification automatique
|
||||||
|
* C'est à dire classer toutes les transactions en 42 classes
|
||||||
|
*/
|
||||||
|
|
||||||
$treemap = new Treemap($data, $width, $height);
|
$treemap = new Treemap($data, $width, $height);
|
||||||
$map = $treemap->getMap();
|
$map = $treemap->getMap();
|
||||||
$m = count($map);
|
$m = count($map);
|
||||||
|
|||||||
Reference in New Issue
Block a user