Ver a proveniência

commentaire sur la classification automatique

master
MEUNIER Thibaud há 1 ano
ascendente
cometimento
cdb520e032
1 ficheiros alterados com 8 adições e 0 eliminações
  1. +8
    -0
      methode2/mondrian/draw.php

+ 8
- 0
methode2/mondrian/draw.php Ver ficheiro

@ -35,6 +35,9 @@ function DrawBlock($the_block, $vImage, $parametres)
$data = blockchain::getTransactionData($the_block, $type);
/*
* Limiter à 42 rectangles
*/
usort($data, 'tri');
$n=0;
@ -46,6 +49,11 @@ function DrawBlock($the_block, $vImage, $parametres)
$data[] = ["hash" => "0000000000000000000000000000000000000000000000000000000000000000", "value" => $n];
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();

Carregando…
Cancelar
Guardar