Class: Vicary::Census::Exposure
- Inherits:
-
Struct
- Object
- Struct
- Vicary::Census::Exposure
- Defined in:
- lib/vicary/census.rb
Overview
How much of the US surname population the single-token tiers claim.
Instance Attribute Summary collapse
-
#bearers_exposed ⇒ Object
Returns the value of attribute bearers_exposed.
-
#bearers_total ⇒ Object
Returns the value of attribute bearers_total.
-
#bearers_via_demonym ⇒ Object
Returns the value of attribute bearers_via_demonym.
-
#bearers_via_place ⇒ Object
Returns the value of attribute bearers_via_place.
-
#bearers_via_short ⇒ Object
Returns the value of attribute bearers_via_short.
-
#surnames_matched ⇒ Object
Returns the value of attribute surnames_matched.
-
#surnames_scored ⇒ Object
Returns the value of attribute surnames_scored.
Instance Method Summary collapse
- #demonym_rate ⇒ Object
- #distinct_rate ⇒ Object
- #place_rate ⇒ Object
-
#rate ⇒ Object
Population-weighted exposure, as a percentage.
- #short_rate ⇒ Object
Instance Attribute Details
#bearers_exposed ⇒ Object
Returns the value of attribute bearers_exposed
63 64 65 |
# File 'lib/vicary/census.rb', line 63 def bearers_exposed @bearers_exposed end |
#bearers_total ⇒ Object
Returns the value of attribute bearers_total
63 64 65 |
# File 'lib/vicary/census.rb', line 63 def bearers_total @bearers_total end |
#bearers_via_demonym ⇒ Object
Returns the value of attribute bearers_via_demonym
63 64 65 |
# File 'lib/vicary/census.rb', line 63 def bearers_via_demonym @bearers_via_demonym end |
#bearers_via_place ⇒ Object
Returns the value of attribute bearers_via_place
63 64 65 |
# File 'lib/vicary/census.rb', line 63 def bearers_via_place @bearers_via_place end |
#bearers_via_short ⇒ Object
Returns the value of attribute bearers_via_short
63 64 65 |
# File 'lib/vicary/census.rb', line 63 def bearers_via_short @bearers_via_short end |
#surnames_matched ⇒ Object
Returns the value of attribute surnames_matched
63 64 65 |
# File 'lib/vicary/census.rb', line 63 def surnames_matched @surnames_matched end |
#surnames_scored ⇒ Object
Returns the value of attribute surnames_scored
63 64 65 |
# File 'lib/vicary/census.rb', line 63 def surnames_scored @surnames_scored end |
Instance Method Details
#demonym_rate ⇒ Object
90 91 92 |
# File 'lib/vicary/census.rb', line 90 def demonym_rate 100.0 * bearers_via_demonym / bearers_total end |
#distinct_rate ⇒ Object
94 95 96 |
# File 'lib/vicary/census.rb', line 94 def distinct_rate 100.0 * surnames_matched / surnames_scored end |
#place_rate ⇒ Object
86 87 88 |
# File 'lib/vicary/census.rb', line 86 def place_rate 100.0 * bearers_via_place / bearers_total end |
#rate ⇒ Object
Population-weighted exposure, as a percentage. The headline.
78 79 80 |
# File 'lib/vicary/census.rb', line 78 def rate 100.0 * bearers_exposed / bearers_total end |
#short_rate ⇒ Object
82 83 84 |
# File 'lib/vicary/census.rb', line 82 def short_rate 100.0 * bearers_via_short / bearers_total end |