Commit 8820edca authored by Marco Berzborn's avatar Marco Berzborn

First check if condition number constraint is set for samplings with condition number optimization

parent 54f99915
......@@ -52,8 +52,12 @@ while true
coordsCart = eq_point_set(2,sArgs.nPoints).';
sampling = itaSamplingSph(coordsCart,'cart');
Y = ita_sph_base(sampling,Nmax);
condNum = cond(Y);
if condNum < sArgs.condSHT
if sArgs.condSHT ~= inf
condNum = cond(Y);
if condNum < sArgs.condSHT
break;
end
else
break;
end
sArgs.nPoints = sArgs.nPoints+1;
......
......@@ -53,8 +53,12 @@ while true
coordsCart = calculate_spiral_points(sArgs.nPoints);
sampling = itaSamplingSph(coordsCart,'sph');
Y = ita_sph_base(sampling,Nmax);
condNum = cond(Y);
if condNum < sArgs.condSHT
if sArgs.condSHT ~= inf
condNum = cond(Y);
if condNum < sArgs.condSHT
break;
end
else
break;
end
sArgs.nPoints = sArgs.nPoints+1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment