This commit is contained in:
2025-03-10 23:51:01 +08:00
parent 7e801fed23
commit 934a2ab4ef
4 changed files with 433 additions and 28 deletions

View File

@@ -120,24 +120,123 @@ Page({
}
],
girlDataList: [
{ age: '0-1', n: '26', '-2SD': '15', '-1SD': '51', '平均值': '86', '1SD': '122', '2SD': '157' },
{ age: '1-2', n: '28', '-2SD': '27', '-1SD': '73', '平均值': '111', '1SD': '149', '2SD': '195' },
{ age: '2-3', n: '25', '-2SD': '36', '-1SD': '88', '平均值': '124', '1SD': '168', '2SD': '212' },
{ age: '3-4', n: '27', '-2SD': '43', '-1SD': '98', '平均值': '140', '1SD': '189', '2SD': '237' },
{ age: '4-5', n: '26', '-2SD': '51', '-1SD': '109', '平均值': '157', '1SD': '210', '2SD': '263' },
{ age: '5-6', n: '25', '-2SD': '59', '-1SD': '121', '平均值': '174', '1SD': '232', '2SD': '289' },
{ age: '6-7', n: '26', '-2SD': '68', '-1SD': '134', '平均值': '193', '1SD': '255', '2SD': '318' },
{ age: '7-8', n: '25', '-2SD': '78', '-1SD': '149', '平均值': '213', '1SD': '281', '2SD': '349' },
{ age: '8-9', n: '26', '-2SD': '90', '-1SD': '165', '平均值': '237', '1SD': '310', '2SD': '384' },
{ age: '9-10', n: '25', '-2SD': '104', '-1SD': '184', '平均值': '264', '1SD': '344', '2SD': '425' },
{ age: '10-11', n: '26', '-2SD': '121', '-1SD': '207', '平均值': '297', '1SD': '385', '2SD': '473' },
{ age: '11-12', n: '25', '-2SD': '141', '-1SD': '234', '平均值': '334', '1SD': '430', '2SD': '527' },
{ age: '12-13', n: '26', '-2SD': '162', '-1SD': '262', '平均值': '373', '1SD': '478', '2SD': '584' },
{ age: '13-14', n: '25', '-2SD': '182', '-1SD': '288', '平均值': '408', '1SD': '521', '2SD': '634' },
{ age: '14-15', n: '26', '-2SD': '197', '-1SD': '307', '平均值': '434', '1SD': '552', '2SD': '671' },
{ age: '15-16', n: '25', '-2SD': '204', '-1SD': '316', '平均值': '446', '1SD': '568', '2SD': '689' },
{ age: '16-17', n: '26', '-2SD': '203', '-1SD': '315', '平均值': '444', '1SD': '565', '2SD': '685' },
{ age: '17-18', n: '25', '-2SD': '194', '-1SD': '302', '平均值': '426', '1SD': '543', '2SD': '659' }
{
age: 6,
n: 26,
"-2SD": 64.30,
"-1SD": 126.30,
"平均值": 188.30,
"1SD": 250.30,
"2SD": 321.30
},
{
age: 7,
n: 25,
"-2SD": 68.60,
"-1SD": 139.50,
"平均值": 210.40,
"1SD": 281.30,
"2SD": 352.20
},
{
age: 8,
n: 26,
"-2SD": 110.00,
"-1SD": 185.90,
"平均值": 261.70,
"1SD": 337.50,
"2SD": 413.20
},
{
age: 9,
n: 25,
"-2SD": 83.50,
"-1SD": 186.50,
"平均值": 289.50,
"1SD": 392.40,
"2SD": 495.30
},
{
age: 10,
n: 26,
"-2SD": 100.00,
"-1SD": 247.80,
"平均值": 395.60,
"1SD": 543.40,
"2SD": 691.20
},
{
age: 11,
n: 25,
"-2SD": 283.30,
"-1SD": 427.50,
"平均值": 570.70,
"1SD": 713.90,
"2SD": 857.10
},
{
age: 12,
n: 26,
"-2SD": 245.40,
"-1SD": 385.60,
"平均值": 525.80,
"1SD": 665.90,
"2SD": 806.20
},
{
age: 13,
n: 25,
"-2SD": 358.50,
"-1SD": 447.80,
"平均值": 537.20,
"1SD": 626.50,
"2SD": 715.80
},
{
age: 14,
n: 26,
"-2SD": 221.40,
"-1SD": 335.20,
"平均值": 448.90,
"1SD": 562.80,
"2SD": 676.60
},
{
age: 15,
n: 25,
"-2SD": 258.70,
"-1SD": 411.30,
"平均值": 563.90,
"1SD": 716.50,
"2SD": 869.10
},
{
age: 16,
n: 26,
"-2SD": 341.50,
"-1SD": 447.50,
"平均值": 553.50,
"1SD": 659.50,
"2SD": 765.50
},
{
age: 17,
n: 25,
"-2SD": 228.60,
"-1SD": 408.60,
"平均值": 550.60,
"1SD": 692.60,
"2SD": 834.60
},
{
age: 18,
n: 25,
"-2SD": 229.50,
"-1SD": 398.15,
"平均值": 566.80,
"1SD": 735.57,
"2SD": 904.26
}
]
},
// 返回

View File

@@ -1,5 +1,5 @@
<van-nav-bar
title="IGF-1参考值男孩"
title="IGF-1参考值"
left-text=""
left-arrow
bind:click-left="onClickLeft"

View File

@@ -5,15 +5,15 @@ Page({
data: {
// 表单数据
formData: {
name: '',
age: '',
height: '',
boneAge: '',
fatherHeight: '',
motherHeight: '',
igf: '',
lh: '',
thickness: ''
name: '诺言',
age: '6',
height: '120',
boneAge: '6',
fatherHeight: '32',
motherHeight: '28',
igf: '334',
lh: '0.6',
thickness: '11'
},
// 计算结果
result: '',

306
公式.txt Normal file
View File

@@ -0,0 +1,306 @@
根据你提供的公式和参数,我们可以逐步计算预测概率
P
P。
公式为:
P
=
exp
(
5.908
+
0.008
×
IGF-1
+
2.146
×
LH
+
0.286
×
子宫厚度
)
1
+
exp
(
5.908
+
0.008
×
IGF-1
+
2.146
×
LH
+
0.286
×
子宫厚度
)
P=
1+exp(5.908+0.008×IGF-1+2.146×LH+0.286×子宫厚度)
exp(5.908+0.008×IGF-1+2.146×LH+0.286×子宫厚度)
代入给定的参数:
IGF-1 = 334 ng/ml
LH = 0.6 mIU/ml
子宫厚度 = 11 mm
首先计算指数部分:
5.908
+
0.008
×
334
+
2.146
×
0.6
+
0.286
×
11
5.908+0.008×334+2.146×0.6+0.286×11
逐步计算:
0.008
×
334
=
2.672
0.008×334=2.672
2.146
×
0.6
=
1.2876
2.146×0.6=1.2876
0.286
×
11
=
3.146
0.286×11=3.146
将这些值相加:
5.908
+
2.672
+
1.2876
+
3.146
=
1.1976
5.908+2.672+1.2876+3.146=1.1976
接下来计算指数函数:
exp
(
1.1976
)
3.312
exp(1.1976)≈3.312
然后计算概率
P
P
P
=
3.312
1
+
3.312
=
3.312
4.312
0.767
P=
1+3.312
3.312
=
4.312
3.312
≈0.767
因此,预测概率
P
P 为 0.767,与你的结果一致。
根据上面公司,请重新给几组测试数据
以下是几组测试数据,你可以根据提供的公式计算预测概率
P
P
测试数据 1
IGF-1: 250 ng/ml
LH: 0.8 mIU/ml
子宫厚度: 10 mm
测试数据 2
IGF-1: 400 ng/ml
LH: 1.2 mIU/ml
子宫厚度: 12 mm
测试数据 3
IGF-1: 300 ng/ml
LH: 0.5 mIU/ml
子宫厚度: 9 mm
测试数据 4
IGF-1: 350 ng/ml
LH: 1.0 mIU/ml
子宫厚度: 11 mm
测试数据 5
IGF-1: 280 ng/ml
LH: 0.7 mIU/ml
子宫厚度: 8 mm
计算示例(以测试数据 1 为例)
公式:
P
=
exp
(
5.908
+
0.008
×
IGF-1
+
2.146
×
LH
+
0.286
×
子宫厚度
)
1
+
exp
(
5.908
+
0.008
×
IGF-1
+
2.146
×
LH
+
0.286
×
子宫厚度
)
P=
1+exp(5.908+0.008×IGF-1+2.146×LH+0.286×子宫厚度)
exp(5.908+0.008×IGF-1+2.146×LH+0.286×子宫厚度)
代入测试数据 1
5.908
+
0.008
×
250
+
2.146
×
0.8
+
0.286
×
10
5.908+0.008×250+2.146×0.8+0.286×10
=
5.908
+
2.0
+
1.7168
+
2.86
=5.908+2.0+1.7168+2.86
=
0.6688
=0.6688
计算指数函数:
exp
(
0.6688
)
1.952
exp(0.6688)≈1.952
计算概率
P
P
P
=
1.952
1
+
1.952
=
1.952
2.952
0.661
P=
1+1.952
1.952
=
2.952
1.952
≈0.661
因此,测试数据 1 的预测概率
P
P 约为 0.661。
你可以用同样的方法计算其他测试数据的
P
P 值。如果需要进一步帮助,请告诉我!