medoos Posted August 25, 2012 Share 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 ? Link to comment Share on other sites More sharing options...
ecoli Posted August 25, 2012 Share Posted August 25, 2012 does this need to be a continuous function? Link to comment Share on other sites More sharing options...
medoos Posted August 25, 2012 Author Share Posted August 25, 2012 does this need to be a continuous function? Yes please. Link to comment Share on other sites More sharing options...
mathematic Posted August 25, 2012 Share Posted August 25, 2012 AB(1-C)(1-D) seems to work. 1 Link to comment Share on other sites More sharing options...
medoos Posted August 26, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
mathematic Posted August 26, 2012 Share 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. Link to comment Share on other sites More sharing options...
medoos Posted August 27, 2012 Author Share 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] Link to comment Share on other sites More sharing options...
Bignose Posted August 27, 2012 Share Posted August 27, 2012 sqrt(A)*sqrt(B)*(1-C)*(1-D) may be more to your liking. Link to comment Share on other sites More sharing options...
ecoli Posted August 27, 2012 Share 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. Link to comment Share on other sites More sharing options...
medoos Posted August 27, 2012 Author Share 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 ? Link to comment Share on other sites More sharing options...
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