죄송 합니다만, 귀하가하려는 일을 완전히 이해하지 못했습니다. 대화를 계속하고 검토 할 수있는 방법론을 제공하기 위해 아래 표와 비슷한 데이터 테이블을 만드는 JSL이 있으며 평균을 계산하는 다른 방법을 사용하는 3 가지 수식이 있습니다. 그것을보고, 당신이 원하는 것을 얻거나 그렇지 않은 경우, 정확하게 계산하려고하는 것을 더 구체적으로 나타낼 수 있는지 확인하십시오.
New Table( "Example",
Add Rows( 4 ),
New Column( "Label",
Character,
"Nominal",
Set Values( {"Dry", "Wet", "outlet Dry", "Outlet Wet"} )
),
New Column( "a",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [80, 67, 57, 55] ),
Set Display Width( 47 )
),
New Column( "b",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [79, 66, 59, 57] )
),
New Column( "c",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [88, 77, 66, 55] )
),
New Column( "One",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
dt = Current Data Table();
Mean( dt[Row(), Index( 2, 4 )] );
)
),
New Column( "two",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
dt = Current Data Table();
Mean( dt[Index( 3, 4 ), Index( 2, 4 )] );
)
),
New Column( "three",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
dt = Current Data Table();
theColumns = dt << get column names( numeric );
Remove From( theColumns, 4, 2 );
Mean( theColumns );
)
)
)여러분 안녕하세요,
변수를 사용하여 3 행과 4 행 사이의 평균값을 얻으려면 어떻게해야합니까?
나는 다음과 같은 일을 생각하고 있었지만 작동하지 않았다.
감사합니다. 회신 해 주셔서 감사합니다.