You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the function, final_score, takes two inputs, s and p. the range for s is 0 to 1. the range for p is -2 to +2. The function f(s,p) increases with either s or p increasing. The function should have the following constraints: f(1,-2) == f(.5, 0) == f(0,2) and f(0.5, -2) == f(0.25, -1) == f(0, 0).
103
113
"""
114
+
115
+
s=m+h
104
116
# Define the scaling factors for s and p
105
117
scale_s=4# default to stated range of p
106
118
scale_p=1# default to stated range of 2
@@ -110,7 +122,12 @@ def final_score(s, p):
110
122
base_value=scale_s*0.5+scale_p*0# default to mid-points of stated ranges
111
123
112
124
# Adjust the function to increase with either s or p increasing
0 commit comments