浏览代码

commentaire sur la classification automatique

master
父节点
当前提交
cdb520e032
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. +8
    -0
      methode2/mondrian/draw.php

+ 8
- 0
methode2/mondrian/draw.php 查看文件

@ -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();

正在加载...
取消
保存