wip
This commit is contained in:
1 parent
326451aa7f
commit
4a1d1eff52
1 file changed
+6
@@ -589,26 +589,32 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
||||
// Aspettativa di Gioco
|
||||
// (AdG)
|
||||
$asp_gioco = $val->goals / $somma_minuti * 90;
|
||||
$tmp['asp_gioco_goals'] = $asp_gioco;
|
||||
$tmp['asp_teorica_goals'] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'cards':
|
||||
$asp_gioco = $val->cards / $somma_minuti * 90;
|
||||
$tmp['asp_gioco_cards'] = $asp_gioco;
|
||||
$tmp['asp_teorica_cards'] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'fouls':
|
||||
$asp_gioco = $val->fouls / $somma_minuti * 90;
|
||||
$tmp['asp_gioco_fouls'] = $asp_gioco;
|
||||
$tmp['asp_teorica_fouls'] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'offsides':
|
||||
$asp_gioco = $val->offsides / $somma_minuti * 90;
|
||||
$tmp['asp_gioco_offsides'] = $asp_gioco;
|
||||
$tmp['asp_teorica_offsides'] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'total_shots':
|
||||
$asp_gioco = $val->total_shots / $somma_minuti * 90;
|
||||
$tmp['asp_gioco_total_shots'] = $asp_gioco;
|
||||
$tmp['asp_teorica_total_shots'] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
case 'shots_on_target':
|
||||
$asp_gioco = $val->shots_on_target / $somma_minuti * 90;
|
||||
$tmp['asp_gioco_shots_on_target'] = $asp_gioco;
|
||||
$tmp['asp_teorica_shots_on_target'] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user