Salut
non ca ne peut pas etre calculé à partir du Lbar actuel ou plutot c'est plus simple de repartir de N.
Ca retourne un double : Lbar
La seule dimension de la matrice c'est TimeStep
double Lbar;
MatrixND LbarMatrix = N.copy();
Lbar = Lbar.sumOverDim(1).reduceDims(1);
double ab = Lbar.sumAll();
LbarMatrix.setName(ResultName.MATRIX_LBAR);
List<PopulationGroup> groups = pop.getPopulationGroup();
for (PopulationGroup group : groups) {
LbarMatrix.setValue(group, LbarMatrix.getValue(group) * group.getLength());
}
LbarMatrix = LbarMatrix.sumOverDim(0); // Somme sur les groupes
LbarMatrix = LbarMatrix.reduce();
Lbar = LbarMatrix / ab;