Sha256: 070ec9b967bed7877d7cb6650ed4f3accd318be317e467bd1853180f724fccfe

Contents?: true

Size: 470 Bytes

Versions: 7

Compression:

Stored size: 470 Bytes

Contents

#GramSchmidtOrgonormalize calculates orthogonal vectors if possible
# translate_center_to_origin centeres points around the origin

messages = [[1,1], [1,-1], [-1,1]]
output_vectors = Digiproc::Strategies::GramSchmidtOrthonormalize.new(messages).output
puts output_vectors.to_s
# Therefore, this signal cannot be reprisented in 3-D Space

#Minimize energy in the 2-D reprisentation
puts Digiproc::Functions.translate_center_to_origin([[1,1],[1,-1],[-1,1]]).to_s

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
digiproc-0.2.5 examples/functions/gram_schmidt.rb
digiproc-0.2.4 examples/functions/gram_schmidt.rb
digiproc-0.2.3 examples/functions/gram_schmidt.rb
digiproc-0.2.2 examples/functions/gram_schmidt.rb
digiproc-0.2.1 examples/functions/gram_schmidt.rb
digiproc-0.2.0 examples/functions/gram_schmidt.rb
digiproc-0.1.0 examples/functions/gram_schmidt.rb