public TransferFunctions<ST> composeAll(final Sequence<TransferFunctions<ST>> tfs) {
if(tfs.length() == 0) {
return UNIT;
}
TransferFunction sumForward = forwardReducer.composeAll(new Sequence<TransferFunction<ST>>() {
public int length() {
return tfs.length();
}
public TransferFunction<ST> get(int i) {
return tfs.get(i).forward;
}
});
TransferFunction sumBackward = backwardReducer.composeAll(new Sequence<TransferFunction<ST>>() {
public int length() {
return tfs.length();
}
public TransferFunction<ST> get(int i) {