1 | /* $Id$ $Revision$ */ |
2 | /* vim:set shiftwidth=4 ts=8: */ |
3 | |
4 | /************************************************************************* |
5 | * Copyright (c) 2011 AT&T Intellectual Property |
6 | * All rights reserved. This program and the accompanying materials |
7 | * are made available under the terms of the Eclipse Public License v1.0 |
8 | * which accompanies this distribution, and is available at |
9 | * http://www.eclipse.org/legal/epl-v10.html |
10 | * |
11 | * Contributors: See CVS logs. Details at http://www.graphviz.org/ |
12 | *************************************************************************/ |
13 | |
14 | #ifdef __cplusplus |
15 | extern "C" { |
16 | #endif |
17 | |
18 | |
19 | |
20 | #ifndef EMBED_GRAPH_H_ |
21 | #define EMBED_GRAPH_H_ |
22 | |
23 | #ifdef __cplusplus |
24 | |
25 | void embed_graph(vtx_data * graph, int n, int dim, |
26 | DistType ** (&coords), int); |
27 | void center_coordinate(DistType ** coords, int n, int dim); |
28 | void PCA(DistType ** coords, int dim, int n, double **(&new_coords), |
29 | int new_dim); |
30 | void PCA(DistType ** coords, int dim, int n, double **(&new_coords), |
31 | int dim1, int dim2, boolean recompute); |
32 | void PCA_orthog(DistType ** coords, int dim, int n, |
33 | double **(&new_coords), int new_dim, double *orthog); |
34 | void iterativePCA(DistType ** coords, int dim, int n, |
35 | double **(&new_coords)); |
36 | |
37 | #else |
38 | #include <defs.h> |
39 | |
40 | extern void embed_graph(vtx_data * graph, int n, int dim, DistType ***, |
41 | int); |
42 | extern void center_coordinate(DistType **, int, int); |
43 | |
44 | #endif |
45 | |
46 | #endif |
47 | |
48 | #ifdef __cplusplus |
49 | } |
50 | #endif |
51 | |