Got everything working in java! Need to move the dot product code into Labeled2DMatrix and flesh out the other cases.
rMat
, D1, D2, D3, D4,
U1, 5, 3, 0, 1,
U2, 4, 0, 0, 1,
U3, 1, 1, 0, 5,
U4, 1, 0, 0, 4,
U5, 0, 1, 5, 4,
rowMat
U1, 0.67, 0.89,
U2, 0.36, 0.47,
U3, 0.51, 0.27,
U4, 0.11, 0.84,
U5, 0.23, 0.88,
colMat
D1, 0.36, 0.68,
D2, 0.84, 0.06,
D3, 0.07, 0.06,
D4, 0.65, 0.16,
steps = 5000
P
Array2DRowRealMatrix{{0.1714659334,2.4334642215},{0.2222526463,1.8424266034},{1.8809519431,0.3877676639},{1.5002592207,0.3319796716},{1.398228183,1.5413729554}}
Q
Array2DRowRealMatrix{{0.1642944844,0.083284122,1.152720993,2.6155442597},{2.0998133805,1.0434120295,2.0884233062,0.228777745}}
rowMat
U1, 0.17, 2.43,
U2, 0.22, 1.84,
U3, 1.88, 0.39,
U4, 1.5, 0.33,
U5, 1.4, 1.54,
colMat
D1, 0.16, 2.1,
D2, 0.08, 1.04,
D3, 1.15, 2.09,
D4, 2.62, 0.23,
newMat
, D1, D2, D3, D4,
U1, 5.14, 2.55, 5.28, 1.01,
U2, 3.91, 1.94, 4.1, 1,
U3, 1.12, 0.56, 2.98, 5.01,
U4, 0.94, 0.47, 2.42, 4,
U5, 3.47, 1.72, 4.83, 4.01,
You must be logged in to post a comment.