Metodo QueryBuilder.AverageBy<'T,'Q,^Value> (F#)
Operatore di query che seleziona un valore per ogni elemento selezionato finora e restituisce la media di questi valori.
Namespace/Module Path: Microsoft.FSharp.Linq
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
member this.AverageBy : QuerySource<'T,'Q> * ('T -> ^Value) -> ^Value when ^Value with static member (+) and ^Value with static member DivideByInt and ^Value with static member Zero
// Usage:
queryBuilder.AverageBy (source, projection)
Parametri
source
Tipo: QuerySource< " T “, Q>La query di input.
projection
Tipo: - 'T > ^ValueUna funzione che determina un valore per ogni elemento.
Valore restituito
La media di tutti i valori prodotti dalla funzione di proiezione.
Note
Per ulteriori informazioni ed esempi, vedere espressioni di query (F#)
Piattaforme
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
Informazioni sulla versione
Versioni della libreria di base F#
Supportato in: 4,0, portabile