class_docstr: !
  @brief Oscillatory network based on Kuramoto model with negative and positive connections for graph coloring problem.
class_docstr_tok: ["!","@","brief","Oscillatory","network","based","on","Kuramoto","model","with","negative","and","positive","connections","for","graph","coloring","problem","."]
docstr: !
  @brief Returns result of phase calculation for oscillator in the network.
  
  @param[in] teta (double): Value of phase of the oscillator with index argv in the network.
  @param[in] t (double): Unused, can be ignored.
  @param[in] argv (uint): Index of the oscillator in the network.
  
  @return (double) New value of phase for oscillator with index argv.
docstr_tok: ["!","@","brief","Returns","result","of","phase","calculation","for","oscillator","in","the","network",".","@","param","[","in","]","teta","(","double",")",":","Value","of","phase","of","the","oscillator","with","index","argv","in","the","network",".","@","param","[","in","]","t","(","double",")",":","Unused",",","can","be","ignored",".","@","param","[","in","]","argv","(","uint",")",":","Index","of","the","oscillator","in","the","network",".","@","return","(","double",")","New","value","of","phase","for","oscillator","with","index","argv","."]
code: def _phase_kuramoto(self, teta, t, argv):
      """!
      @brief Returns result of phase calculation for oscillator in the network.
  
      @param[in] teta (double): Value of phase of the oscillator with index argv in the network.
      @param[in] t (double): Unused, can be ignored.
      @param[in] argv (uint): Index of the oscillator in the network.
  
      @return (double) New value of phase for oscillator with index argv.
  
      """
  
      index = argv
      phase = 0
  
      for k in range(0, self._num_osc):
          if self.has_connection(index, k) == True:
              phase += self._negative_weight * math.sin(
                  self._phases[k] - teta
              )
          else:
              phase += self._positive_weight * math.sin(
                  self._phases[k] - teta
              )
  
      return phase / self._reduction
  
file_path: pyclustering/pyclustering/gcolor/sync.py
imports: from pyclustering.nnet import *
  from pyclustering.nnet.sync import sync_network
  from pyclustering.nnet.sync import sync_dynamic
label_desc: Use image node_id 3 for calling the syncgcolor obj's underlying member method code with example usage: obj._phase_kuramoto(teta, t, argv) and returns: unknown