local P={}function P.Lerp(P,z,g)return P*(1-g)+z*g end function P.Median(P)if type(P)~="\116\097\098\108\101"then return P end table.sort(P)if#P%2==0 then return(P[#P/2]+P[#P/2+1])/2 end return P[math.ceil(#P/2)]end function P.SecondsToFrames(P,z)if not z then z=60 end return P*z end return P
--DEFINE MODULE--
local Math = {}



--PUBLIC FUNCTIONS--
function Math.Lerp(A, B, T) 
	return A * (1 - T) + B * T
end

function Math.Median(Numbers)
	if type(Numbers) ~= "table" then return Numbers end
	
	table.sort(Numbers)
	if #Numbers % 2 == 0 then
		return (Numbers[#Numbers / 2] + Numbers[#Numbers / 2 + 1]) / 2 
	end
	
	return Numbers[math.ceil(#Numbers / 2)]
end

function Math.SecondsToFrames(Seconds, FPS)
	if not FPS then
		FPS = 60
	end
	
	return Seconds * FPS
end



--RETURN MODULE--
return Math