(i int)
| 320 | } |
| 321 | |
| 322 | func (this *Solver) get_C(i int) float64 { |
| 323 | var rst float64 |
| 324 | if this.y[i] > 0 { |
| 325 | rst = this.Cp |
| 326 | } else { |
| 327 | rst = this.Cn |
| 328 | } |
| 329 | return rst |
| 330 | } |
| 331 | |
| 332 | func (this *Solver) update_alpha_status(i int) { |
| 333 | if this.alpha[i] >= this.get_C(i) { |
no outgoing calls
no test coverage detected