1 2 3 4 5 6 7 8
#!/usr/bin/env ruby require "zipf" a = SparseVector.from_file "w", " " b = SparseVector.from_file "f", " " puts a.to_s puts a.dot b