Generalized additive models reveal the intrinsic complexity of wood formation dynamics