Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# cogent.maths.stats.util.Freqs.items

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

```        alts = Freqs([(c, p) for c, p in char_prob if c!=C])
alts.normalize()
alts = Freqs([(c,w/(2*n)) for c,w in alts.items()])
weights += [(C, alts)]
return weights
```

```        alts = Freqs([(c, p) for c, p in char_prob if c!=C])
alts.normalize()
alts = Freqs([(c,w/(2*n)) for c,w in alts.items()])
weights += [(C, alts)]
return weights
```

```        normalized = Freqs(self)
normalized.normalize()
for aa, aa_freq in normalized.items():
curr_codons = [c.upper().replace('T','U') for c in genetic_code[aa]]
if not curr_codons:
```

```        normalized = Freqs(self)
normalized.normalize()
for aa, aa_freq in normalized.items():
curr_codons = [c.upper().replace('T','U') for c in genetic_code[aa]]
if not curr_codons:
```

```                      ('C','U'):0.1875, ('C','C'):0.5625})

for k, v in exp.items():
self.assertEqual(v, obs[k])
for k, v in obs.items():
```

```                      ('C','U'):0.1875, ('C','C'):0.5625})