Jump to content

Recommended Posts

Posted

 

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 ?

 

 

 

 

 

Posted (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 by medoos
Posted

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.

Posted

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]

Posted

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 ?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.