sq_error Function

public elemental function sq_error(exp, pred)

Squared error between two values.

Description

Examples

 error = sq_error(true_value, model_value)

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: exp
real(kind=pr), intent(in) :: pred

Return Value real(kind=pr)