# s-curve **Repository Path**: clive-ccc/s-curve ## Basic Information - **Project Name**: s-curve - **Description**: s曲线模拟显示 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-02-06 - **Last Updated**: 2024-02-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README s曲线函数原型为 y = 1/(1+ exp(-x)) 变化扩展后 Y = A + B / ( 1 + exp( -ax + b ) ) A分量在Y方向进行平移 B分量在Y方向进行拉伸 a分量在x方向进行平移 b分量在x方向进行拉伸 实际应用如下 Fcurrent = Fstart + (Fend-Fstart)/(1+exp( -Flexible(i - Num )/ Num) ) = Fstart + (Fend-Fstart)/(1+exp( -(Flexible/Num)*i + Flexible) ) Fcurrent 当前频率值 Fstart 起始频率值 Fend 目标频率值 Flexible S型曲线拉伸变化。 Flexible代表S曲线的平滑程度,Flexible越大说明加速度越大,即曲线越陡,Flexible越小说明曲线越平滑。 理想的S曲线Flexible取值为4 ~ 6。 Num Num一般取值为 Length/2 大小,这样可以使得S曲线对称,Length为加减速点的总个数 i 循环计算过程中的索引,从0开始,到 Length结束