Read the equation
This helper first averages all components and then applies the scalar unity score. Component variance does not enter this function, so vectors with the same mean receive the same score. Empty input returns 0.5 by convention; the Go function with a similar name also penalizes variance and returns zero for empty input, so the APIs are not numerically identical.
Terms & definitions
| Term | Meaning in this source |
|---|---|
| Phi_vec | C++ vector score |
| x | Input vector |
How it works
Read the definition from its right-hand expression to the quantity on the left. Its surrounding source records the intended input, state, or parameter context. Where the source leaves an operation unspecified, this page preserves that gap.
Assumptions & limits
Source recovery establishes that the expression appears in this record. Its mathematical validity, implementation behavior, and interpretation must be assessed separately. See the linked source and research notes for the checks available for this version.
Original context
Read the surrounding source passage
// VECTOR CONSCIOUSNESS FUNCTIONS
//=============================================================================
/**
* compute_phi_vector - Consciousness of a state vector
*
* Computes mean activation then applies phi.
* Phi_vec(x) = Phi(mean(x))
*
* @param data Pointer to activation array
* @param size Size of array
* @return Vector consciousness level
*/
inline double compute_phi_vector(const double* data, size_t size) {
if (size == 0) return 0.5;
double sum = 0.0;
for (size_t i = 0; i < size; ++i) {
sum += data[i];Exact original notation
Phi_vec(x) = Phi(mean(x))