MCPcopy Create free account
hub / github.com/angular/components / mean

Method mean

src/dev-app/performance/performance-demo.ts:89–94  ·  view source on GitHub ↗

The average value of the recorded samples.

()

Source from the content-addressed store, hash-verified

87
88 /** The average value of the recorded samples. */
89 get mean(): number | undefined {
90 if (!this.allSamples.length) {
91 return undefined;
92 }
93 return this.allSamples.reduce((a, b) => a + b) / this.allSamples.length;
94 }
95
96 @ViewChild(MatPaginator) paginator?: MatPaginator;
97

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected