app/Statistics/Repository/FamilyRepository.php
public function averageChildren(): string
    {
        $average = (float) DB::table('families')
            ->where('f_file', '=', $this->tree->id())
            ->avg('f_numchil');

        return I18N::number($average, 2);
    }
public function averageChildren(): string
    {
        $average = (float) DB::table('families')
            ->where('f_file', '=', $this->tree->id())
            ->avg('f_numchil');

        return I18N::number($average, 2);
    }
public function averageChildren ( ) : string { $ average = ( float ) DB :: table ( 'families' ) -> where ( 'f_file' , '=' , $ this -> tree -> id ( ) ) -> avg ( 'f_numchil' ) ; return I18N :: number ( $ average , 2 ) ; }
Find the average number of children in families.

@return string
Find the average number of children in families .