Пример #1
0
 def processVariable(self, request: TaskRequest, node: OpNode,
                     variable: EDASArray) -> EDASArray:
     variable.persist()
     return variable - variable.ave(node.axes)
Пример #2
0
 def processVariable(self, request: TaskRequest, node: OpNode,
                     variable: EDASArray) -> EDASArray:
     variable.persist()
     centered_result = variable - variable.ave(node.axes)
     return centered_result / centered_result.std(node.axes)