Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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
Develop games in your browser. Powerful, performant & highly capable.
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!