How do I fix the array value to finish this calculation?

  • I'm trying to create an application that calculates standard deviation. Everything is working EXCEPT when I pulled the values from the array it does not finish the calculation highlighted. I want the mean to be subtracted from the value pulled from each array step and then squared. The array values are getting added to the sum_of_mean_differences which is good and then giving the square root but it's ignoring that vital step. The Data_Array_1.Mean)^2 step is just getting skipped and I have no idea why. Some help would be appreciated. Maybe something I am misunderstanding about local and global variables? Not sure. Any help is appreciated.

  • Assuming that sum_of_mean_differences is a numeric variable, can you try the following:

    Set sum_of_mean_differences to (float(Data_Array_1.At(Data_Array_1.Data_Entry_Point)) - Data_Array_1.Mean)^2

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Aw man thanks so much. I thought I did that before and it didn't work. Thanks a lot for your help. I misused the conversion of the integer value to a float value. What a simple mistake. Thanks a ton again!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)