To calculate the derivatives of output.L2 with respect to output.L1.
anfis.dO2.dO1(anfis, output.L2, output.L1)
The given ANFIS model
The output of nodes in Layer 2
The output of nodes in Layer 1
The derivatives of output.L2 with respect to output.L1. do2[j].do1[i] <- do2.do1[[i]][[which(fan.out==j)]]
This function is not recommended for external use, but can be used for debugging or learning.