public MatrixSignal getMatrixSignal(float[][] signal) {
Sample2D[][] samplesMatrix = new Sample2D[signal.length][signal[0].length];
for (int j = 0; j < signal[0].length; j++) {
for (int i = 0; i < signal.length; i++) {
Point2D point = new Point2D(i, j);
BigDecimalSampleValue value = new BigDecimalSampleValue(
new BigDecimal(signal[i][j]).setScale(
MatrixSignal.SCALE, MatrixSignal.ROUNDING));
samplesMatrix[i][j] = new BigDecimalSample2D(point, value);
}
}