8 Replies Latest reply on Jun 11, 2016 5:40 AM by try67

# calculating standard deviation

Hello,

in pdf form, i want to calculate the standard deviation for 5 feilds named (F1,F2,F3,F4,F5) which is numeric and i think that this can be done through a custom calculating script.. can you help me please in a code to perform this calculation...

thank you

• ###### 1. Re: calculating standard deviation

For a link to a post that has the functions to compute the mean average, sum, count and standard deviation from an array of values. Using the array allows one to use the filter method of the array to remove unwanted values like null strings.

• ###### 2. Re: calculating standard deviation

i put it, but it does not work

i place the feilds name (F1,F2,F3,F4,F5) instead the numbers that he use.. how i could correct it

• ###### 3. Re: calculating standard deviation

This is all custom JavaScript.

You need to create an array of the non-null values form your fields. Then  use that array of values as the parameter to the function calls to get the result of the function returned back to your script. You then need to use more JavaScript to set your field values.

With your values my form calculates a sum of 6.26, an average of 1.252, and a standard deviation of 0.24252010225958592

Calculate Standard Deviation

• ###### 4. Re: calculating standard deviation

i'm sorry that i'm a bignner but if u can send the form that you used to calculate the Standard deviation i will be gratefull. i will use it as a guide. thanks alot

• ###### 5. Re: calculating standard deviation

Here is a tested link to the drop box file. You do not need to join, just click "continue to view" and download the form to use the form.

Calculate Standard Deviation

• ###### 6. Re: calculating standard deviation

thank you.. thank you ... i'm very gratefull for your help.

• ###### 7. Re: calculating standard deviation

i have used adobe livecycle designer Es2 for making form, i want to calculate the standard deviation for 5 feilds named (F1,F2,F3,F4,F5) which is numeric and i think that this can be done through a custom calculating script.. can you help me please in a code to perform this calculation... the previous was in adobe acrobat pro but when use the same code u gave me previously it does not work with adobe livecycle designer.. please help me in this issue

thank you

• ###### 8. Re: calculating standard deviation

You should ask here: LiveCycle Designer