Mean Program Salesforce Apex Trigger
Firstly we have to create an object of name “ MPC__c“.

This apex trigger takes two fields
1. Mean_Output__c, 2. Values_to_calculate_mean__c.


Mean is an average value of given set of numbers. It is calculated similar to that of average value. Adding all given number together and then dividing them by the total number of values produces mean.
For Example − Mean of 3, 5, 2, 7, 3 is (3 + 5 + 2 + 7 + 3) / 5 = 4.

Comments
Post a Comment