- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
private ArrayList MNK(Matrix x, ArrayList y) {
normalization(ref x);
for (int i = 0; i < x.N; i++)
for (int j = 0; j < x.M; j++)
x.data[i, j] = Chebyshev.function(x.data[i,j],POWER_POLYNOM);
Matrix yNew = Matrix.CreateMatrixFromArrayList(y);
Matrix tranc = x.Tranc_Matrix(x);
Matrix temp = x.Obernena_Matrix(x.Mul_Matrix(tranc, x));
temp = x.Mul_Matrix(temp, tranc);
temp = x.Mul_Matrix(temp, yNew);
yNew = yNew.Mul_Matrix(x,temp);
return (returnValue(yNew, y));
}
//****************************************************
#region
private static ArrayList returnValue(Matrix yNew, ArrayList y)
{
ArrayList t = new ArrayList();
Random r = new Random();
double k = 2;
for (int i = 0; i < y.Count; i++)
{
if (y.GetHashCode() == y1.GetHashCode())
k = 1;
if (y.GetHashCode() == y2.GetHashCode())
k = 4000;
if (y.GetHashCode() == y3.GetHashCode())
k = 1000000;
t.Add((double)y[i] + ((double)(r.NextDouble() * k - k/2)));
}
return t;
}
#endregion
вот как тру системные аналитики пишут свои прогнозы))))))))))