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

# cogent.maths.svd.three_item_combos

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

```                  float64, max, min, average, any, pi
from cogent.util.array import without_diag
from cogent.maths.svd import three_item_combos, two_item_combos
from cogent.maths.stats.test import std

```
```    leaves = list(tree.traverse())
result = {}
for first, second, third in three_item_combos(leaves):
new_first, new_second, new_third = outgroup_last(first, second, third)
#get the sequence from each node
```

```                  float64, max, min, average, any, pi
from cogent.util.array import without_diag
from cogent.maths.svd import three_item_combos, two_item_combos
from cogent.maths.stats.test import std

```
```    leaves = list(tree.traverse())
result = {}
for first, second, third in three_item_combos(leaves):
new_first, new_second, new_third = outgroup_last(first, second, third)
#get the sequence from each node
```

```#!/usr/bin/env python
"""Unit tests for the svd-supporting functionality."""

from cogent.util.unit_test import TestCase, main
from cogent.maths.svd import ratio_two_best, ratio_best_to_sum, \
```
```    def test_three_item_combos(self):
"""three_item_combos should return items in correct order"""
items = list(three_item_combos('abcde'))
self.assertEqual(items, map(tuple, \
```

```#!/usr/bin/env python
"""Unit tests for the svd-supporting functionality."""

from cogent.util.unit_test import TestCase, main
from cogent.maths.svd import ratio_two_best, ratio_best_to_sum, \
```
```    def test_three_item_combos(self):
"""three_item_combos should return items in correct order"""
items = list(three_item_combos('abcde'))
self.assertEqual(items, map(tuple, \