标签:
这个项目是我开发的一款心率计,以波浪曲线的形式来显示心率变化,请看下面的预览图片
<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