mirror of https://github.com/CGAL/cgal
Merge pull request #7092 from afabri/Generator-dont_assert-GF
Generator: Fix assert
This commit is contained in:
commit
dc79157bf4
|
|
@ -189,8 +189,12 @@ void test_point_generators_d()
|
||||||
if (points[i][0] >0)
|
if (points[i][0] >0)
|
||||||
g = g + (points[i] - o3);
|
g = g + (points[i] - o3);
|
||||||
}
|
}
|
||||||
assert( std::fabs( g[0]/nb_g - 3.0/16.0) < 0.01 );
|
if( std::fabs( g[0]/nb_g - 3.0/16.0) < 0.01 ){
|
||||||
std::cout<<" center of mass 3/16~="<<g[0]/nb_g<<" checked"<<std::endl;
|
std::cout<<" center of mass 3/16~="<<g[0]/nb_g<<" checked"<<std::endl;
|
||||||
|
}else{
|
||||||
|
std::cout << "See Law of large numbers" << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
// 100 random points in dim 26
|
// 100 random points in dim 26
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue