Commit a3525d07 authored by Antoine Lucas's avatar Antoine Lucas
Browse files

plus besoin

parent 1ddd589d
/** \file hclustpar.c
* \brief Parallelized version of hcluster (use distpar routine)
*
*
* \date Created : 14/11/02
* \date Last Modified : Time-stamp: <2005-10-09 14:30:37 antoine>
*
* \author Antoine Lucas.
*/
#include <stdlib.h>
#include <math.h>
#include "mva.h"
#include "hclustpar.h"
#include "hclust_template.h"
extern "C"
{
/** Paralelized hierarchical clustering
* \brief allocate distance matrix execute function R_distancepar, launch
* hclust on this distance matrix, and free memory of distance matrix.
* \param x: data nr x nc
* \param nr,nc number of row and columns
* \param membr: member, vector 1:nr
* \param method integer -> distance method
* \param diag integer: if we compute diagonal in distance matrix (usually no)
* \param iopt integer -> link used
* \param nbprocess nb of process for parallelization
* \param precision 1: float; 2: double
* \param ia, ib result (merge)
* \param iorder result (order)
* \param crit result (height)
* \param result flag 0 => correct
* 1 => Pb
* 2 => Cannot allocate memory
* 3 => Pb with distance matrix
*/
void hclusterpar(double *x, int *nr, int *nc, int *diag, int *method, int *iopt ,int *ia , int *ib,int *iorder,double *crit,double *membr,int *nbprocess,int * precision, int * result);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment