Giter Site home page Giter Site logo

wavelet-based-ecg-compression's People

Contributors

nerajbobra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wavelet-based-ecg-compression's Issues

ValueError: operands could not be broadcast together with shapes (2999,) (3000,)

When running the program i get this error.

ValueError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_13236/914743393.py in
32
33 #quantize the coefficients. choose the number of bits to quantize based on the PRD
---> 34 num_bits, PRD_tmp = calculate_num_bits(data, coeffs_scaled, binary_map, scaling_factors, do_plot=(i==1))
35 PRD_avg = PRD_avg + PRD_tmp
36

~\AppData\Local\Temp/ipykernel_13236/349910877.py in calculate_num_bits(orig_sig, coeffs_scaled, binary_map, scaling_factors, do_plot)
29
30 #calculate PRD
---> 31 PRD = calculate_PRD(orig_sig, data_reconstructed)
32 PRD_dict[num_bits] = PRD
33

~\AppData\Local\Temp/ipykernel_13236/2916057613.py in calculate_PRD(orig_sig, reconstructed_sig)
1 def calculate_PRD(orig_sig, reconstructed_sig):
----> 2 num = np.sum((orig_sig - reconstructed_sig)2)
3 den = np.sum(orig_sig
2)
4
5 PRD = np.sqrt(num/den)

ValueError: operands could not be broadcast together with shapes (2999,) (3000,)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.