码迷,mamicode.com
首页 > 其他好文 > 详细

动态曲线显示的心率计

时间:2015-03-05 22:19:57      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:

这个项目是我开发的一款心率计,以波浪曲线的形式来显示心率变化,请看下面的预览图片

<ignore_js_op>技术分享 


<ignore_js_op>技术分享<ignore_js_op>技术分享<ignore_js_op>技术分享<ignore_js_op>技术分享 
开源代码地址:https://github.com/dirtyhub/WaveHeartRate

欢迎大家fork后自己开发,也欢迎大家star后以备后用

/**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]

  

动态曲线显示的心率计

标签:

原文地址:http://www.cnblogs.com/ncuboy-045wsq/p/4316744.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!