projects
/
swc-testing-nose.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
testing/nose: Restructure to split out examples
[swc-testing-nose.git]
/
testing
/
nose
/
exercises
/
close-line
/
test_close_line.py
1
import numpy as np
2
3
4
# generate some sample data
5
p1 = np.array([0.0, 0.0])
6
p2 = np.array([1.0, 1.0])
7
data = np.array([[0.3, 0.6], [0.25, 0.5], [1.0, 0.75]])