在浮点数学中将[0,1]映射到[0,1]

时间:2016-10-22 21:01:30

标签: math precision numerical-methods

假设我有浮动功能:
var hospitals = context.Hospitals.Where(p=>p.IL_KODU==1); var persons = (from c in context.Persons join x in context.PersonStatus on c.TcKimlik equals x.Tckn join h in hospitals on x.HospitalCode equals h.KURUM_KODU where x.Statu == true select new DataViewModel { Id = c.Id, TcKimlik = c.TcKimlik, Uyruk = c.Uyruk, Ad = c.Ad, Soyad = c.Soyad, Cinsiyet = c.Cinsiyet, DogumTarihi = c.DogumTarihi, KurumStatu = h.PAYDAS, KurumKodu = h.KURUM_KODU, KurumAdi = h.KURUM_ADI, BranchName = c.Brans.BranchName, AcademicTitleName = c.AkademikUnvan.Title, ManagerialTitleName = c.IdariUnvan.Title, StaffStatuName = c.Durum.Statu, BranchTypeName = c.Unvan.Type, ServiceClassName = c.Unvan.ServiceClass.Name, City = h.KURUM_ILI, CityCode = h.IL_KODU, CityTownName = h.KURUM_ILCESI }).AsQueryable(); ,其范围为f

我想创建一个功能
[0, 1],其范围为g

这样的 [0, 1)

使用有限精度浮点数学,我无法使f(x) < f(y) -> g(x) < g(y)的范围完全g,但我能得到多近,我该怎么做?

0 个答案:

没有答案