Hi @nperez
This is the modified Composite(). I've created the unit test.
I noticed that the new Composite() has a slight difference from s2dverification::Composite. It is because of s2dverification::Mean1Dim and s2dv::MeanDims, which are used in the two Composite() respectively. s2dv::MeanDims are the same as s2dverification::MeanListDims, but they're slightly different from Mean1Dim(). I took a brief look and found the difference may come from the average method. In Mean1Dim(), the average is calculated by division, while in the other two is by mean(). The difference only shows when the number is close to 0 (e.g., 10^-17).
Please let me know your thought, thanks!
Best,
An-Chi