 	<cfreturn loc.rv>
 </cffunction>
 
-<cffunction name="minimum" returntype="any" access="public" output="false" hint="Calculates the minimum value for a given property. Uses the SQL function `MIN`. If no records can be found to perform the calculation on you can use the `ifNull` argument to decide what should be returned."
-	examples=
-	'
-		// Get the amount of the lowest salary for all employees
-		lowestSalary = model("employee").minimum("salary");
-
-		// Get the amount of the lowest salary for employees in a given department
-		lowestSalary = model("employee").minimum(property="salary", where="departmentId=##params.key##");
-
-		// Make sure a numeric amount is always returned, even when there were no records analyzed by the query
-		lowestSalary = model("employee").minimum(property="salary", where="salary BETWEEN ##params.min## AND ##params.max##", ifNull=0);
-	'
-	categories="model-class,statistics" chapters="column-statistics" functions="average,count,maximum,sum">
+<cffunction name="minimum" returntype="any" access="public" output="false" hint="Calculates the minimum value for a given property. Uses the SQL function `MIN`. If no records can be found to perform the calculation on you can use the `ifNull` argument to decide what should be returned.">
 	<cfargument name="property" type="string" required="true" hint="Name of the property to get the lowest value for (must be a property of a numeric data type).">
 	<cfargument name="where" type="string" required="false" default="" hint="See documentation for @findAll.">
 	<cfargument name="include" type="string" required="false" default="" hint="See documentation for @findAll.">

<!--- PUBLIC MODEL CLASS METHODS --->

<cffunction name="average" returntype="any" access="public" output="false" hint="Calculates the average value for a given property. Uses the SQL function `AVG`. If no records can be found to perform the calculation on you can use the `ifNull` argument to decide what should be returned."
	examples=
	'
		// Get the average salary for all employees
		avgSalary = model("employee").average("salary");

		// Get the average salary for employees in a given department
		avgSalary = model("employee").average(property="salary", where="departmentId=##params.key##");

		// Make sure a numeric value is always returned if no records are calculated
		avgSalary = model("employee").average(property="salary", where="salary BETWEEN ##params.min## AND ##params.max##", ifNull=0);
	'
	categories="model-class,statistics" chapters="column-statistics" functions="count,maximum,minimum,sum">
	<cfargument name="property" type="string" required="true" hint="Name of the property to calculate the average for.">
	<cfargument name="where" type="string" required="false" default="" hint="See documentation for @findAll.">
	<cfargument name="include" type="string" required="false" default="" hint="See documentation for @findAll.">

	<cfreturn loc.rv>
</cffunction>

<!--- PRIVATE METHODS --->

<cffunction name="$calculate" returntype="any" access="public" output="false" hint="Creates the query that needs to be run for all of the above methods.">
	<cfargument name="type" type="string" required="true">
