Scientist @ Fraunhofer IDMT

Liketohear-Ai

Last updated: July 30th, 20202020-07-30Project preview
In [1]:
import pandas as pd
import json
import re
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
In [2]:
levelsum = lambda x: 10**(float(x)/10) #function to add acoustic levels of sound sources
In [3]:
dings=[1,2,3,4,5,5]
testlist=map(levelsum,dings)
In [4]:
print (list(dings))
[1, 2, 3, 4, 5, 5]
In [5]:
f = lambda x, y : x + y
f(1,1)
Out[5]:
2
In [7]:
map(f,list)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-7-5fe8b3e7358e> in <module>
----> 1 map(f,list)

TypeError: 'type' object is not iterable
In [7]:
fib = [0,1,1,2,3,5,8,13,21,34,55]
result = filter(lambda x: x % 2 == 0, fib)
print (list(result))
[0, 2, 8, 34]
In [8]:
temp = (36.5, 37, 37.5,39)

F_liste = map(lambda C: (5.0 / 9) * ( C - 32 ), temp)
print(F_liste)

C_liste = map(lambda F: (9.0 / 5) * F + 32, F_liste)
print(C_liste)
<map object at 0x7ff8cbbeceb0>
<map object at 0x7ff8cbbecdc0>
In [9]:
list(C_liste)
Out[9]:
[36.5, 37.0, 37.5, 39.0]
In [ ]:
 
In [ ]:
 
In [ ]:
 
Notebooks AI
Notebooks AI Profile20060