summaryrefslogtreecommitdiff
path: root/src/Persistence_representations/example
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-05-30 15:20:29 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-05-30 15:20:29 +0000
commit0654bfbab17fe16edf90445f0a351454b460028f (patch)
treee8cc47decaf74d44cc1d82ac01f105676ad5248a /src/Persistence_representations/example
parent5de02a8e89ce7905281a0ef6d40f82ef04d426d6 (diff)
Fix spell checker errors
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/persistence_representation_integration@2475 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 94422e6f356532b2db4dc5a55cbb851210b3c36d
Diffstat (limited to 'src/Persistence_representations/example')
-rw-r--r--src/Persistence_representations/example/persistence_heat_maps.cpp4
-rw-r--r--src/Persistence_representations/example/persistence_intervals.cpp4
-rw-r--r--src/Persistence_representations/example/persistence_landscape.cpp4
-rw-r--r--src/Persistence_representations/example/persistence_landscape_on_grid.cpp2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/Persistence_representations/example/persistence_heat_maps.cpp b/src/Persistence_representations/example/persistence_heat_maps.cpp
index da87486d..c75e2731 100644
--- a/src/Persistence_representations/example/persistence_heat_maps.cpp
+++ b/src/Persistence_representations/example/persistence_heat_maps.cpp
@@ -55,7 +55,7 @@ int main( int argc , char** argv )
persistence2.push_back( std::make_pair(3,5) );
persistence2.push_back( std::make_pair(6,10) );
- //over here we define a function we sill put on a top on every birth--death pair in the persistence interval. It can be anything. Over here we will use standarg Gaussian
+ //over here we define a function we sill put on a top on every birth--death pair in the persistence interval. It can be anything. Over here we will use standard Gaussian
std::vector< std::vector<double> > filter = create_Gaussian_filter(5,1);
//creating two heat maps.
@@ -72,7 +72,7 @@ int main( int argc , char** argv )
Persistence_heat_maps<constant_scaling_function> median;
median.compute_median( vector_of_maps );
- //to compute L^1 disance between hm1 and hm2:
+ //to compute L^1 distance between hm1 and hm2:
std::cout << "The L^1 distance is : " << hm1.distance( hm2 , 1 ) << std::endl;
//to average of hm1 and hm2:
diff --git a/src/Persistence_representations/example/persistence_intervals.cpp b/src/Persistence_representations/example/persistence_intervals.cpp
index ed5b4e34..947c9627 100644
--- a/src/Persistence_representations/example/persistence_intervals.cpp
+++ b/src/Persistence_representations/example/persistence_intervals.cpp
@@ -47,7 +47,7 @@ int main( int argc , char** argv )
std::vector<double> dominant_ten_intervals_length = p.length_of_dominant_intervals(10);
- std::cout << "Lendth of ten dominant intervals : " <<std::endl;
+ std::cout << "Length of ten dominant intervals : " <<std::endl;
for ( size_t i = 0 ; i != dominant_ten_intervals_length.size() ; ++i )
{
std::cout << dominant_ten_intervals_length[i] <<std::endl;
@@ -70,7 +70,7 @@ int main( int argc , char** argv )
std::vector< size_t > cumulative_histogram = p.cumulative_histogram_of_lengths( 10 );
- std::cout<< "Cumuative histogram : " <<std::endl;
+ std::cout<< "Cumulative histogram : " <<std::endl;
for ( size_t i = 0 ; i != cumulative_histogram.size() ; ++i )
{
std::cout << cumulative_histogram[i] << " ";
diff --git a/src/Persistence_representations/example/persistence_landscape.cpp b/src/Persistence_representations/example/persistence_landscape.cpp
index 40fb7d32..3ce31918 100644
--- a/src/Persistence_representations/example/persistence_landscape.cpp
+++ b/src/Persistence_representations/example/persistence_landscape.cpp
@@ -61,7 +61,7 @@ int main( int argc , char** argv )
std::cout << "l1 : " << l1 << std::endl;
std::cout << "l2 : " << l2 << std::endl;
- //Arythmetic operations on landscapes:
+ //Arithmetic operations on landscapes:
Persistence_landscape sum = l1+l2;
std::cout << "sum : " << sum << std::endl;
@@ -84,7 +84,7 @@ int main( int argc , char** argv )
//here is the scalar product of landscapes:
std::cout << "Scalar product : " << l1.compute_scalar_product( l2 ) << std::endl;
- //here is how to create a file which is suitable for vizualization via gnuplot:
+ //here is how to create a file which is suitable for visualization via gnuplot:
average.plot( "average_landscape" );
return 0;
diff --git a/src/Persistence_representations/example/persistence_landscape_on_grid.cpp b/src/Persistence_representations/example/persistence_landscape_on_grid.cpp
index b38ac3d9..276b7a44 100644
--- a/src/Persistence_representations/example/persistence_landscape_on_grid.cpp
+++ b/src/Persistence_representations/example/persistence_landscape_on_grid.cpp
@@ -80,7 +80,7 @@ int main( int argc , char** argv )
//here is the scalar product of landscapes:
std::cout << "Scalar product : " << l1.compute_scalar_product( l2 ) << std::endl;
- //here is how to create a file which is suitable for vizualization via gnuplot:
+ //here is how to create a file which is suitable for visualization via gnuplot:
average.plot( "average_landscape" );