summaryrefslogtreecommitdiff
path: root/src/cython/include/Vectors_interface.h
diff options
context:
space:
mode:
authormcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-04-23 15:44:55 +0000
committermcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-04-23 15:44:55 +0000
commitea11100d803c86a0fd5cfec1b9431110b48d87c9 (patch)
tree3dd39429ce50d24cd43f0d115422509214ea4067 /src/cython/include/Vectors_interface.h
parent380571047eac55b826fe8e0654f9ed9b64f22ffa (diff)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/kernels@3389 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 1569e7e9d47af54fe85e736583e53c99f1178439
Diffstat (limited to 'src/cython/include/Vectors_interface.h')
-rw-r--r--src/cython/include/Vectors_interface.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cython/include/Vectors_interface.h b/src/cython/include/Vectors_interface.h
index 49d28e7c..7e191f2a 100644
--- a/src/cython/include/Vectors_interface.h
+++ b/src/cython/include/Vectors_interface.h
@@ -44,9 +44,9 @@ namespace persistence_diagram {
std::vector<std::vector<double> > compute_pim(const std::vector<std::pair<double, double> >& diag, double min_x, double max_x, int res_x, double min_y, double max_y, int res_y, std::string weight, double sigma, double C, double p) {
Weight weight_fn;
- if(weight.compare("linear") == 0) weight_fn = Gudhi::Persistence_representations::Persistence_weighted_gaussian::linear_weight;
- if(weight.compare("arctan") == 0) weight_fn = Gudhi::Persistence_representations::Persistence_weighted_gaussian::arctan_weight(C,p);
- if(weight.compare("const") == 0) weight_fn = Gudhi::Persistence_representations::Persistence_weighted_gaussian::const_weight;
+ if(weight.compare("linear") == 0) weight_fn = Gudhi::Persistence_representations::linear_weight;
+ if(weight.compare("arctan") == 0) weight_fn = Gudhi::Persistence_representations::arctan_weight(C,p);
+ if(weight.compare("const") == 0) weight_fn = Gudhi::Persistence_representations::const_weight;
Gudhi::Persistence_representations::Persistence_image P(diag, min_x, max_x, res_x, min_y, max_y, res_y, weight_fn, sigma);
return P.vectorize();
}