medoos Posted August 25, 2012 Posted August 25, 2012 I have 4 attributes A,B,C,D each of them takes value between [0,1] I want to make function F(A,B,C,D) such that: The more A and B, the more the function value is. The more C and D, the less the function value is. if C or D equals "one" the function value is zero. I want this function also to return value between [0,1] How can I do that ?
medoos Posted August 25, 2012 Author Posted August 25, 2012 does this need to be a continuous function? Yes please.
medoos Posted August 26, 2012 Author Posted August 26, 2012 (edited) AB(1-C)(1-D) seems to work. Thanks it works but always returns small values. How can I increase the effect of A and B ? Edited August 26, 2012 by medoos
mathematic Posted August 26, 2012 Posted August 26, 2012 Thanks it works but always returns small values. How can I increase the effect of A and B ? What are you looking for? Since the function is limited to [0,1] and = 1 for A=1, B=1, C=0, D=0, you need to be more specific.
medoos Posted August 27, 2012 Author Posted August 27, 2012 What are you looking for? Since the function is limited to [0,1] and = 1 for A=1, B=1, C=0, D=0, you need to be more specific. I want the effect of A and B to be more than the effect of C and D while having the function between [0,1]
Bignose Posted August 27, 2012 Posted August 27, 2012 sqrt(A)*sqrt(B)*(1-C)*(1-D) may be more to your liking.
ecoli Posted August 27, 2012 Posted August 27, 2012 or a*b*(1-c)*(1-d) ^ (a*b) try plotting the output and see what you're actually trying to envision.
medoos Posted August 27, 2012 Author Posted August 27, 2012 or a*b*(1-c)*(1-d) ^ (a*b) try plotting the output and see what you're actually trying to envision. how to plot it while i have four inputs and one output ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now