You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clMatrix Structure > clMatrix Methods > Mean Method > clMatrix.Mean Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clMatrix.Mean Method ()

Mean value.

Syntax
C#
Visual Basic
public double Mean();

Calculate the mean value of all calling object elements. The result is a real value. An exception is raised if calling object Complex property is true.

var a: clMatrix; b: double; begin a.Size(2,2, clFloat, false); a.CopyFromArray(TDoubleArray.Create(1,2,3,4)); b := a.Mean; // b = 2.5 end;
Copyright (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!