Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double Skewness(double AMean, double AStdDev) const; | Skewness (third central momentum). |
| 2 | double Skewness(double AMean, double AStdDev, int Index, int Len) const; | Calculate the skewness for elements [Index]..[Index+Len-1]. |
Overload 1: double Skewness(double AMean, double AStdDev) const;
Skewness (third central momentum).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | double | |
| 2 | AStdDev | double |
Remarks:
Calculate the calling object skewness by using mean value AMean and standard deviation AStdDev. Skewness is the third central moment, divided by third power of standard deviation:
Examples
#include "MtxExpr.h"
#include "Units.MtxVec.h"
#include "Units.SignalUtils.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Signal;
using namespace Dew::Math::Units::MtxVec;
using namespace Dew::Signal::Units::SignalUtils;
void Example()
{
Matrix a;
double c, d;
a.SetIt(1, 4, false, DewArray<double>{1, 2, 3, 4});
d = a.Mean();
c = a.Skewness(d, a.StdDev(d)); //or
d = Mean(a);
c = Skewness(a, d, StdDev(a, d));
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 2: double Skewness(double AMean, double AStdDev, int Index, int Len) const;
Calculate the skewness for elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | double | |
| 2 | AStdDev | double | |
| 3 | Index | int | |
| 4 | Len | int |
Remarks:
An exception is raised if Matrix::ConditionCheck is True and array borders are overrun. The AMean and AStdDev parameters must be computed from the same elements from which the Skewness is to be computed.
Examples
#include "MtxExpr.h"
#include "Units.MtxVec.h"
#include "Units.SignalUtils.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Signal;
using namespace Dew::Math::Units::MtxVec;
using namespace Dew::Signal::Units::SignalUtils;
void Example()
{
Matrix a;
double c, d;
a = {{1, 2, 3, 4}};
d = a.Mean();
c = a.Skewness(d, a.StdDev(d)); //or
d = Mean(a);
c = Skewness(a, d, StdDev(a, d));
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler