main.cpp
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <stdlib.h>
#include <string>
#include <fstream>
#include <algorithm>
#include <stim/biomodels/network.h>
#include <ANN/ANN.h>
#include <boost/tuple/tuple.hpp>
using namespace stim;
//template <typename T>
network<float>* network1;
int main(int argc, char* argv[])
{
if(argc < 4){
std::cout<<"Please specify a ground truth and test case"<<std::endl;
exit(1);
}
stim::network<float> GT;
GT.load_obj(argv[1]);
std::cout<<GT.str();
/*std::string groundTruth = argv[1];
std::string truthCase = argv[2];
float sigma = atof(argv[3]);
//stim::network<int> network;
boost::tuple< ANNkd_tree*, ANNkd_tree*, stim::network<float>, stim::network<float> > networkKdtree;
networkKdtree = network1->LoadNetworks(groundTruth, truthCase);
std::cout<<networkKdtree.get< 2>().edges_to_str()<<std::endl;
networkKdtree.get< 2>().to_obj();
//networkKdtree.get< 2>()
boost::tuple< float, float > metrics = network1->compareSkeletons(networkKdtree, sigma);
std::cout << "False postive rate is " << metrics.get< 0>() << std::endl;
std::cout << "False negative rate is " << metrics.get< 1>() << std::endl;
*/
}