Closed Davetbutler closed 2 months ago
Implement a nada program that computes the standard deviation of an array of SecretIntegers
SecretInteger
This is a commonly used math function, and thus we should have an example for others to use rather than write the nada program from scratch.
The nada program should have one party, whose input is a SecretInteger and output the standard deviation of the input array.
DIM = 10 def nada_main(): party1 = Party(name="Party1") num = na.array([DIM], party1, "num", SecretInteger) # compute the standard deviation return na.output(standard_deviation, party1, "standard_deviation")
To do this, you will likely need the square root function that has already been implemented as an example in this repo.
Description
Implement a nada program that computes the standard deviation of an array of
SecretInteger
sUse Case
This is a commonly used math function, and thus we should have an example for others to use rather than write the nada program from scratch.
Specific Requirements
The nada program should have one party, whose input is a SecretInteger and output the standard deviation of the input array.
To do this, you will likely need the square root function that has already been implemented as an example in this repo.