Jump to content

Mathematical function for four corelated attributes

Featured Replies

 

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 ?

 

 

 

 

 

  • Author

does this need to be a continuous function?

 

Yes please.

  • Author

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

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.

  • Author

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]

  • Author

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 ?

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.