Giter Club home page Giter Club logo

waveheartrate's Introduction

image

I hope it will inspire you guy to program much better application, and enjoy it, just we togother make progress.

/**the view width as 9 weights*/
private static final int WIDTH_TOTAL_WEIGHTS = 9;
/**the view height as 9 weights*/
private static final int HEIGHT_TOTAL_WEIGHTS = 9;


//The peak point, all of numbers are weight, such as (4/total_width_weight)*width, (0/total_height_weight)*height
//(8,7) to (6,0)

//need to draw line by other software

//draw the wave peak when the valid heartrate is gotten.
//LLL 0  1 2 3 4 5 6 7 8 9
//0                    (7,0)[2]
//1				  				
//2							
//3								
//4							
//5							
//6			   				
//7	  (0, 6)[5]	 (4,6)[4]	
//8	
//9				          (8,6)[1]  	 
//10				(5,9)[3]
			

//here you can change the weight to make difference shape of wave
private static final int[][] m_WavePeak_Weight = new int[][]{
        new int[]{4, 0, 6, 6},
        new int[]{5, 4, HEIGHT_TOTAL_WEIGHTS, 6},
        new int[]{7, 5, 0, HEIGHT_TOTAL_WEIGHTS},
        new int[]{WIDTH_TOTAL_WEIGHTS, 7, 6, 0}
};

//draw the line when the heartrate is not gotten.

//LLL 0  1 2 3 4 5 6 7 8 9
//0                       
//1				  				
//2			
//3			
//4			
//5			
//6			   
//7	 (0, 6)[2]<<<<<<<<<<<<(8, 6)[1]	
//8	
//9				          	 
//10				
private static final int[] m_WaveLine_Weight = new int[]{WIDTH_TOTAL_WEIGHTS, 0, 6, 6};

waveheartrate's People

Contributors

sherchen avatar

Watchers

霜刃西瓜 avatar

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.