Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit a2b34ec2 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

wrong string identifier in string.Format

parent 47344b98
Branches
Tags
No related merge requests found
......@@ -118,15 +118,13 @@ namespace TUGraz.VectoCore.Utils
public double? Mean => _count > 0 ? _sum / _count : (double?)null;
public override string ToString()
{
return string.Format("[{0},{2}]", Center, Mean);
}
public override string ToString() => $"[{Center},{Mean}]";
public bool Update(double tolerance)
{
if (Mean == null)
return false;
var retVal = Math.Abs(Center - Mean.Value) > tolerance;
Center = Mean.Value;
_count = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment