SlideShare una empresa de Scribd logo
1 de 35
Descargar para leer sin conexión
2 if0 t
                      h.t / e               ” H.f                 f /              frequency shiftin
                Figure 13.1.2. Convolution of discretely sampled functions. Note how the response function fo
                                                                     0

                            Convolution
                times is wrapped around and stored at the extreme right end of the array rk .
             With two functions h.t / and g.t /, and their corresponding
        H.f / and G.f /, we can form two combinations of special intere
•   Amount of Example: Abetween g functions 1asbyall other rk ’s equal
        of the two functions, denoted 2 h, is r0 D and
                    overlap response function with defined they are
    translatedjust the identity filter. Convolution Zis1signal with this response functio
              is                                      of a
              identically the signal. Another example the response function with r14 D
                                                hÁ
              all other rk ’s equal to zero.gThis produces convolved output / d is the inpu
                                                             g. /h.t        that
                                                       1
             multiplied by 1:5 and delayed by 14 sample intervals.

• In
                  Evidently, we have just described in words the following definition of
       practice: discrete a(sampled) theof finitedomain M : that g h D
        Note convolution witha function in signal s,duration and
             that g h is response function time short response
         that the function g            h is one member of a simple transform pair,
    function r (kernel)
                                                                  M=2
                                                                   X
                           g     h ” G.f /H.f /
                                      .r s/j Á                          convolution theorem
                                                                          sj k rk
                                                              kD M=2C1
         In other words, the Fourier transform of the convolution is just
         individual Fourier transforms.is nonzero only in some range M=2 < k Ä
              If a discrete response function
              The correlation of two functions, denoted Corr.g; h/, is defi
              where M is a sufficiently large even integer, then the response function is
              finite impulse response (FIR), and its duration is M . (Notice that we are defi
                                                        Z 1
              as the number of nonzero values of rk ; these values span a time interval of
                                       Corr.g; circumstances the C t /h. / d is the
              sampling times.) In most practicalh/ Á           g. case of finite M
                interest, either because the response really has1finite duration, or because we
                                                                a
2 if0 t
                        h.t / e               ” H.f                 f /              frequency shiftin
                  Figure 13.1.2. Convolution of discretely sampled functions. Note how the response function fo
                                                                       0

                              Convolution
                  times is wrapped around and stored at the extreme right end of the array rk .
               With two functions h.t / and g.t /, and their corresponding
          H.f / and G.f /, we can form two combinations of special intere
  •   Amount of Example: Abetween g functions 1asbyall other rk ’s equal
          of the two functions, denoted 2 h, is r0 D and
                      overlap response function with defined they are
      translatedjust the identity filter. Convolution Zis1signal with this response functio
                is                                      of a
                identically the signal. Another example the response function with r14 D
                                                  hÁ
                all other rk ’s equal to zero.gThis produces convolved output / d is the inpu
                                                               g. /h.t        that
                                                         1
               multiplied by 1:5 and delayed by 14 sample intervals.

  • In
                    Evidently, we have just described in words the following definition of
         practice: discrete a(sampled) theof finitedomain M : that g h D
          Note convolution witha function in signal s,duration and
               that g h is response function time short response
           that the function g            h is one member of a simple transform pair,
      function r (kernel)
                                                                    M=2
                                                                     X
                             g     h ” G.f /H.f /
                                        .r s/j Á                          convolution theorem
                                                                            sj k rk
                                                                kD M=2C1
         In other words, the Fourier transform of the convolution is just
         individual Fourier transforms.
convolution If a discrete response function is nonzero only in some range M=2 < k Ä
              The correlation of two functions, denoted Corr.g; h/, is defi
              where M is a sufficiently large even integer, then the response function is
signal        finite impulse response (FIR), and its duration is M . (Notice that we are defi
                                                          Z 1
              as the number of nonzero values of rk ; these values span a time interval of
                                        Corr.g; circumstances the C t /h. / d is the
              sampling times.) In most practicalh/ Á            g. case of finite M
kernel        interest, either because the response really has1finite duration, or because we
                                                              a
Convolution
• Width of kernel defines smoothing strength
Convolution
 • Width of kernel defines smoothing strength
convolution 1
convolution 2
signal
kernel 1
kernel 2
Convolution
 • Width of kernel defines smoothing strength
convolution 1
convolution 2
signal
kernel 1
kernel 2

 • Quite fast (O(N*M)), not fast enough
Convolution
 • Width of kernel defines smoothing strength
convolution 1
convolution 2
signal
kernel 1
kernel 2

 • Quite fast (O(N*M)), not fast enough
Map




Reduce
Map




Reduce
Map     Map   Map   Map   Map




Reduce
Map      Map      Map      Map      Map




Reduce   Reduce   Reduce   Reduce   Reduce
Map      Map      Map      Map      Map




Reduce   Reduce   Reduce   Reduce   Reduce
Build     Build     Build     Build     Build
  Map       Map       Map       Map       Map
windows   windows   windows   windows   windows




Reduce    Reduce    Reduce    Reduce    Reduce
Build     Build     Build     Build     Build
  Map       Map       Map       Map       Map
windows   windows   windows   windows   windows




Reduce    Reduce    Reduce    Reduce    Reduce
Build     Build     Build     Build     Build
           Map       Map       Map       Map       Map
         windows   windows   windows   windows   windows


Shuffle

         Reduce    Reduce    Reduce    Reduce    Reduce
Build       Build       Build       Build       Build
           Map         Map         Map         Map         Map
         windows     windows     windows     windows     windows


Shuffle

          Reduce
         Convolute    Reduce
                     Convolute    Reduce
                                 Convolute    Reduce
                                             Convolute    Reduce
                                                         Convolute
Build       Build       Build       Build       Build
           Map         Map         Map         Map         Map
         windows     windows     windows     windows     windows


Shuffle

          Reduce
         Convolute    Reduce
                     Convolute    Reduce
                                 Convolute    Reduce
                                             Convolute    Reduce
                                                         Convolute
Build       Build       Build       Build       Build
           Map         Map         Map         Map         Map
         windows     windows     windows     windows     windows


Shuffle

          Reduce
         Convolute    Reduce
                     Convolute    Reduce
                                 Convolute    Reduce
                                             Convolute    Reduce
                                                         Convolute
i
    Convolution in Hadoop
                  “nr3” — 2007/5/1 — 20:53 — page 644 — #666



            644
• Wrap-around problem
                            Chapter 13. Fourier and Spectral Applications



                                         response function


                    m+                                                  m−




                                   sample of original function               m+

                   m−




                                          convolution

                  spoiled                  unspoiled                 spoiled
Convolution in Hadoop    spoiled
                                                    convolution

                                                     unspoiled                         spoiled



• Wrap-around problem
             Figure 13.1.3. The wraparound problem in convolving finite segments of a function. Not only must
             the response function wrap be viewed as cyclic, but so must the sampled original function. Therefore,
             a portion at each end of the original function is erroneously wrapped around by convolution with the


 • Ignore spoiled regions
             response function.


                                      response function

 • Mirror the sequence (works well in our case)
                  m+                                                        m−


 • Zero-padding
                                           original function                                 zero padding

                       m−                                                                                m+



                                  not spoiled because zero

                  m+                                                                                m−

                        unspoiled                                                                spoiled
                                                                                              but irrelevant
Convolution in Hadoop
• Data split problem: windowing
 • `Overlap-convolute’
Convolution in Hadoop
 • Data split problem: windowing
  • `Overlap-convolute’
Map
(window)
           timestamp1
                        timestamp2

                                     timestamp3
Convolution in Hadoop
 • Data split problem: windowing
  • `Overlap-convolute’
              Mapper1         Mapper2         Mapper3
Map
(window)       1        2 1     2       3 2    3
           timestamp1
                          timestamp2

                                          timestamp3
Convolution in Hadoop
  • Data split problem: windowing
   • `Overlap-convolute’
                 Mapper1         Mapper2         Mapper3
Map
(window)          1        2 1     2       3 2    3
              timestamp1
                             timestamp2
Reduce
(convolute)                                  timestamp3
Convolution in Hadoop
  • Data split problem: windowing
   • `Overlap-convolute’
                 Mapper1         Mapper2         Mapper3
Map
(window)          1        2 1     2       3 2    3
              timestamp1
                             timestamp2
Reduce
(convolute)                                  timestamp3


              Emit only unpolluted data
Convolution in Hadoop
• Data split problem: windowing
 • `Convolute-add’
Convolution in Hadoop
  • Data split problem: windowing
   • `Convolute-add’
Map          0             0
(convolute             0                0
with 0-padding)                             0
                                    0
Convolution in Hadoop
  • Data split problem: windowing
   • `Convolute-add’
Map
(convolute
with 0-padding)

Reduce
(add)                 A       A+B      B     B+C      C

                  Add values in overlapping regions
Hint: Keep mappers alive

• Mappers will be killed if you spend too much
  time in a loop (e.g. during long convolutions)
• Do this in large loops:
 • for(loopcount%1000==0){context.progress();}
Even faster: Fourier Transform
• Converts signal from time domain to frequency domain
 • Stress sensor (time domain)
 •f

 • Fourier transform (frequency domain)
Discrete Fourier Transform
• Converts signal from time domain to frequency domain
 • Vibration sensor (time domain)


 • Fourier transform (frequency domain)
H.f / and G.f /, we can form two combinatio
                                       of the two functions, denoted g h, is defined
                DFT for convolution                               g hÁ
                                                                        Z 1
                                                                               g. /h
    • Convolution theorem: Note that gtransform of convolution
        i                  Fourier
                                        h is a function in the time domai
                                                                                   1


        is product of individualthat the 2007/5/1 — 20:53 one page 643 of a#665
                                 Fourier transforms— member — sim
i
                              “nr3” — function g h is

                                                      g   h ” G.f /H.f /               conv

    •   Discrete convolution13.1 Convolution and the Fourier transform FFTthe c
                             theorem:
                              In other words, Deconvolution Using the of
                                       individual Fourier transforms.
                                            The correlation of two functions, denoted
                                              N=2
                                              X
                                                     sj k rk ” Sn Rn Z 1
    • Conditions:                           kD N=2C1           Corr.g; h/ Á      g.
                                                                                       1

      • Signal periodic: 0-padding (see above) of t , which is call
                    Here Sn .n D 0; : : : ; N 1/ is the discrete Fourier transform of the valu
                             The correlation is a function
                    0; : : : ; N 1/, while Rn .n D 0; : : : ; N 1/ is the discrete Fourier t

      • Signals of same length: Pad response ” G.f /H .f /0s c
                             domain, and it turns out to be one member of t
                    the values rk .k D 0; : : : ; N 1/. These values of rk are the same as f
                                                    function with
                    k D N=2 C 1; : : : ; N=2, but in wraparound order, exactly as was desc
                    end of 12.2.      Corr.g; h/

                    13.1.1 Treatment of End Effects by Zero Paddingpai
                                 [More generally, the second member of the
Discrete Fourier Transform
• DFT is O(NlogN)
• In Hadoop:
  • Modification of Parallel-FFT
  • Convolution:
    • MR-DFT
    • Take product of both FTs
    • inverse MR-DFT
Segmentation


         Windowing     Windowing     Windowing     Windowing     Windowing



Shuffle

         Convolute     Convolute     Convolute     Convolute     Convolute
         G’,G’’,G’’’   G’,G’’,G’’’   G’,G’’,G’’’   G’,G’’,G’’’   G’,G’’,G’’’


                               Emit zero-crossings
Segmentation
signal
convolution
segmentation




1st, 2nd,3rd degree derivatives
Segmentation
signal
convolution
segmentation

Más contenido relacionado

La actualidad más candente

La actualidad más candente (17)

Dsp lecture vol 5 design of iir
Dsp lecture vol 5 design of iirDsp lecture vol 5 design of iir
Dsp lecture vol 5 design of iir
 
Chapter7 circuits
Chapter7 circuitsChapter7 circuits
Chapter7 circuits
 
Design of IIR filters
Design of IIR filtersDesign of IIR filters
Design of IIR filters
 
Dissertation Slides
Dissertation SlidesDissertation Slides
Dissertation Slides
 
Lecture 02 internet video search
Lecture 02 internet video searchLecture 02 internet video search
Lecture 02 internet video search
 
Nyquist criterion for zero ISI
Nyquist criterion for zero ISINyquist criterion for zero ISI
Nyquist criterion for zero ISI
 
IIR Filters
IIR FiltersIIR Filters
IIR Filters
 
Mechanistic rate decline analysis in shale gas reservoirs@dr. george stewart[...
Mechanistic rate decline analysis in shale gas reservoirs@dr. george stewart[...Mechanistic rate decline analysis in shale gas reservoirs@dr. george stewart[...
Mechanistic rate decline analysis in shale gas reservoirs@dr. george stewart[...
 
Lb2519271931
Lb2519271931Lb2519271931
Lb2519271931
 
Warping Concept (iir filters-bilinear transformation method)
Warping Concept  (iir filters-bilinear transformation method)Warping Concept  (iir filters-bilinear transformation method)
Warping Concept (iir filters-bilinear transformation method)
 
Correlative level coding
Correlative level codingCorrelative level coding
Correlative level coding
 
20080426 distributed algorithms_pedone_lecture04
20080426 distributed algorithms_pedone_lecture0420080426 distributed algorithms_pedone_lecture04
20080426 distributed algorithms_pedone_lecture04
 
Dsp U Lec09 Iir Filter Design
Dsp U   Lec09 Iir Filter DesignDsp U   Lec09 Iir Filter Design
Dsp U Lec09 Iir Filter Design
 
Ky2418521856
Ky2418521856Ky2418521856
Ky2418521856
 
Robust wavelet denoising
Robust wavelet denoisingRobust wavelet denoising
Robust wavelet denoising
 
[Download] rev chapter-5-june26th
[Download] rev chapter-5-june26th[Download] rev chapter-5-june26th
[Download] rev chapter-5-june26th
 
[Download] rev chapter-9-june26th
[Download] rev chapter-9-june26th[Download] rev chapter-9-june26th
[Download] rev chapter-9-june26th
 

Destacado

Lti analysis signal system presentation by vijay ,vishal ,rahul upadhyay ,sat...
Lti analysis signal system presentation by vijay ,vishal ,rahul upadhyay ,sat...Lti analysis signal system presentation by vijay ,vishal ,rahul upadhyay ,sat...
Lti analysis signal system presentation by vijay ,vishal ,rahul upadhyay ,sat...Vijay Munda
 
Convolution final slides
Convolution final slidesConvolution final slides
Convolution final slidesramyasree_ssj
 
Lti and z transform
Lti and z transformLti and z transform
Lti and z transformpranvendra29
 
fourier series
fourier seriesfourier series
fourier series8laddu8
 
Application of fourier series
Application of fourier seriesApplication of fourier series
Application of fourier seriesGirish Dhareshwar
 
Speech Recognition System By Matlab
Speech Recognition System By MatlabSpeech Recognition System By Matlab
Speech Recognition System By MatlabAnkit Gujrati
 
Can We Assess Creativity?
Can We Assess Creativity?Can We Assess Creativity?
Can We Assess Creativity?John Spencer
 

Destacado (10)

Paper Presentation
Paper PresentationPaper Presentation
Paper Presentation
 
Ecte401 notes week3
Ecte401 notes week3Ecte401 notes week3
Ecte401 notes week3
 
Lti analysis signal system presentation by vijay ,vishal ,rahul upadhyay ,sat...
Lti analysis signal system presentation by vijay ,vishal ,rahul upadhyay ,sat...Lti analysis signal system presentation by vijay ,vishal ,rahul upadhyay ,sat...
Lti analysis signal system presentation by vijay ,vishal ,rahul upadhyay ,sat...
 
Convolution final slides
Convolution final slidesConvolution final slides
Convolution final slides
 
Lti and z transform
Lti and z transformLti and z transform
Lti and z transform
 
fourier series
fourier seriesfourier series
fourier series
 
Application of fourier series
Application of fourier seriesApplication of fourier series
Application of fourier series
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Speech Recognition System By Matlab
Speech Recognition System By MatlabSpeech Recognition System By Matlab
Speech Recognition System By Matlab
 
Can We Assess Creativity?
Can We Assess Creativity?Can We Assess Creativity?
Can We Assess Creativity?
 

Similar a Hadoop sensordata part2

DONY Simple and Practical Algorithm sft.pptx
DONY Simple and Practical Algorithm sft.pptxDONY Simple and Practical Algorithm sft.pptx
DONY Simple and Practical Algorithm sft.pptxDonyMa
 
Pres Simple and Practical Algorithm sft.pptx
Pres Simple and Practical Algorithm sft.pptxPres Simple and Practical Algorithm sft.pptx
Pres Simple and Practical Algorithm sft.pptxDonyMa
 
fourier representation of signal and systems
fourier representation of signal and systemsfourier representation of signal and systems
fourier representation of signal and systemsSugeng Widodo
 
Tele3113 wk2wed
Tele3113 wk2wedTele3113 wk2wed
Tele3113 wk2wedVin Voro
 
Wavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGAWavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGADr. Mohieddin Moradi
 
High-order Finite Elements for Computational Physics
High-order Finite Elements for Computational PhysicsHigh-order Finite Elements for Computational Physics
High-order Finite Elements for Computational PhysicsRobert Rieben
 
signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)iqbal ahmad
 
WaveletTutorial.pdf
WaveletTutorial.pdfWaveletTutorial.pdf
WaveletTutorial.pdfshreyassr9
 
Doering Savov
Doering SavovDoering Savov
Doering Savovgh
 
Inversion Theorem for Generalized Fractional Hilbert Transform
Inversion Theorem for Generalized Fractional Hilbert TransformInversion Theorem for Generalized Fractional Hilbert Transform
Inversion Theorem for Generalized Fractional Hilbert Transforminventionjournals
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transformSimranjit Singh
 
Physics of wave_propagation_in_a_turbulent_medium
Physics of wave_propagation_in_a_turbulent_mediumPhysics of wave_propagation_in_a_turbulent_medium
Physics of wave_propagation_in_a_turbulent_mediumwtyru1989
 
A design procedure for active rectangular microstrip patch antenna
A design procedure for active rectangular microstrip patch antennaA design procedure for active rectangular microstrip patch antenna
A design procedure for active rectangular microstrip patch antennaIAEME Publication
 
ICML2019読み会(2019/08/04, @オムロン)「On the Universality of Invariant Networks」紹介スライド
ICML2019読み会(2019/08/04, @オムロン)「On the Universality of Invariant Networks」紹介スライドICML2019読み会(2019/08/04, @オムロン)「On the Universality of Invariant Networks」紹介スライド
ICML2019読み会(2019/08/04, @オムロン)「On the Universality of Invariant Networks」紹介スライドrmizuno1
 

Similar a Hadoop sensordata part2 (20)

Hm2513521357
Hm2513521357Hm2513521357
Hm2513521357
 
Hm2513521357
Hm2513521357Hm2513521357
Hm2513521357
 
DONY Simple and Practical Algorithm sft.pptx
DONY Simple and Practical Algorithm sft.pptxDONY Simple and Practical Algorithm sft.pptx
DONY Simple and Practical Algorithm sft.pptx
 
Pres Simple and Practical Algorithm sft.pptx
Pres Simple and Practical Algorithm sft.pptxPres Simple and Practical Algorithm sft.pptx
Pres Simple and Practical Algorithm sft.pptx
 
fourier representation of signal and systems
fourier representation of signal and systemsfourier representation of signal and systems
fourier representation of signal and systems
 
Tele3113 wk2wed
Tele3113 wk2wedTele3113 wk2wed
Tele3113 wk2wed
 
Wavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGAWavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGA
 
filter design
filter designfilter design
filter design
 
Kq2518641868
Kq2518641868Kq2518641868
Kq2518641868
 
Kq2518641868
Kq2518641868Kq2518641868
Kq2518641868
 
High-order Finite Elements for Computational Physics
High-order Finite Elements for Computational PhysicsHigh-order Finite Elements for Computational Physics
High-order Finite Elements for Computational Physics
 
signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)
 
WaveletTutorial.pdf
WaveletTutorial.pdfWaveletTutorial.pdf
WaveletTutorial.pdf
 
Final document
Final documentFinal document
Final document
 
Doering Savov
Doering SavovDoering Savov
Doering Savov
 
Inversion Theorem for Generalized Fractional Hilbert Transform
Inversion Theorem for Generalized Fractional Hilbert TransformInversion Theorem for Generalized Fractional Hilbert Transform
Inversion Theorem for Generalized Fractional Hilbert Transform
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transform
 
Physics of wave_propagation_in_a_turbulent_medium
Physics of wave_propagation_in_a_turbulent_mediumPhysics of wave_propagation_in_a_turbulent_medium
Physics of wave_propagation_in_a_turbulent_medium
 
A design procedure for active rectangular microstrip patch antenna
A design procedure for active rectangular microstrip patch antennaA design procedure for active rectangular microstrip patch antenna
A design procedure for active rectangular microstrip patch antenna
 
ICML2019読み会(2019/08/04, @オムロン)「On the Universality of Invariant Networks」紹介スライド
ICML2019読み会(2019/08/04, @オムロン)「On the Universality of Invariant Networks」紹介スライドICML2019読み会(2019/08/04, @オムロン)「On the Universality of Invariant Networks」紹介スライド
ICML2019読み会(2019/08/04, @オムロン)「On the Universality of Invariant Networks」紹介スライド
 

Más de Joaquin Vanschoren (19)

Meta learning tutorial
Meta learning tutorialMeta learning tutorial
Meta learning tutorial
 
AutoML lectures (ACDL 2019)
AutoML lectures (ACDL 2019)AutoML lectures (ACDL 2019)
AutoML lectures (ACDL 2019)
 
OpenML 2019
OpenML 2019OpenML 2019
OpenML 2019
 
Exposé Ontology
Exposé OntologyExposé Ontology
Exposé Ontology
 
Designed Serendipity
Designed SerendipityDesigned Serendipity
Designed Serendipity
 
Learning how to learn
Learning how to learnLearning how to learn
Learning how to learn
 
OpenML NeurIPS2018
OpenML NeurIPS2018OpenML NeurIPS2018
OpenML NeurIPS2018
 
Open and Automated Machine Learning
Open and Automated Machine LearningOpen and Automated Machine Learning
Open and Automated Machine Learning
 
OpenML Reproducibility in Machine Learning ICML2017
OpenML Reproducibility in Machine Learning ICML2017OpenML Reproducibility in Machine Learning ICML2017
OpenML Reproducibility in Machine Learning ICML2017
 
OpenML DALI
OpenML DALIOpenML DALI
OpenML DALI
 
OpenML data@Sheffield
OpenML data@SheffieldOpenML data@Sheffield
OpenML data@Sheffield
 
OpenML Tutorial ECMLPKDD 2015
OpenML Tutorial ECMLPKDD 2015OpenML Tutorial ECMLPKDD 2015
OpenML Tutorial ECMLPKDD 2015
 
OpenML Tutorial: Networked Science in Machine Learning
OpenML Tutorial: Networked Science in Machine LearningOpenML Tutorial: Networked Science in Machine Learning
OpenML Tutorial: Networked Science in Machine Learning
 
Data science
Data scienceData science
Data science
 
OpenML 2014
OpenML 2014OpenML 2014
OpenML 2014
 
Open Machine Learning
Open Machine LearningOpen Machine Learning
Open Machine Learning
 
Hadoop tutorial
Hadoop tutorialHadoop tutorial
Hadoop tutorial
 
Hadoop sensordata part1
Hadoop sensordata part1Hadoop sensordata part1
Hadoop sensordata part1
 
Hadoop sensordata part3
Hadoop sensordata part3Hadoop sensordata part3
Hadoop sensordata part3
 

Último

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 

Último (20)

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 

Hadoop sensordata part2

  • 1. 2 if0 t h.t / e ” H.f f / frequency shiftin Figure 13.1.2. Convolution of discretely sampled functions. Note how the response function fo 0 Convolution times is wrapped around and stored at the extreme right end of the array rk . With two functions h.t / and g.t /, and their corresponding H.f / and G.f /, we can form two combinations of special intere • Amount of Example: Abetween g functions 1asbyall other rk ’s equal of the two functions, denoted 2 h, is r0 D and overlap response function with defined they are translatedjust the identity filter. Convolution Zis1signal with this response functio is of a identically the signal. Another example the response function with r14 D hÁ all other rk ’s equal to zero.gThis produces convolved output / d is the inpu g. /h.t that 1 multiplied by 1:5 and delayed by 14 sample intervals. • In Evidently, we have just described in words the following definition of practice: discrete a(sampled) theof finitedomain M : that g h D Note convolution witha function in signal s,duration and that g h is response function time short response that the function g h is one member of a simple transform pair, function r (kernel) M=2 X g h ” G.f /H.f / .r s/j Á convolution theorem sj k rk kD M=2C1 In other words, the Fourier transform of the convolution is just individual Fourier transforms.is nonzero only in some range M=2 < k Ä If a discrete response function The correlation of two functions, denoted Corr.g; h/, is defi where M is a sufficiently large even integer, then the response function is finite impulse response (FIR), and its duration is M . (Notice that we are defi Z 1 as the number of nonzero values of rk ; these values span a time interval of Corr.g; circumstances the C t /h. / d is the sampling times.) In most practicalh/ Á g. case of finite M interest, either because the response really has1finite duration, or because we a
  • 2. 2 if0 t h.t / e ” H.f f / frequency shiftin Figure 13.1.2. Convolution of discretely sampled functions. Note how the response function fo 0 Convolution times is wrapped around and stored at the extreme right end of the array rk . With two functions h.t / and g.t /, and their corresponding H.f / and G.f /, we can form two combinations of special intere • Amount of Example: Abetween g functions 1asbyall other rk ’s equal of the two functions, denoted 2 h, is r0 D and overlap response function with defined they are translatedjust the identity filter. Convolution Zis1signal with this response functio is of a identically the signal. Another example the response function with r14 D hÁ all other rk ’s equal to zero.gThis produces convolved output / d is the inpu g. /h.t that 1 multiplied by 1:5 and delayed by 14 sample intervals. • In Evidently, we have just described in words the following definition of practice: discrete a(sampled) theof finitedomain M : that g h D Note convolution witha function in signal s,duration and that g h is response function time short response that the function g h is one member of a simple transform pair, function r (kernel) M=2 X g h ” G.f /H.f / .r s/j Á convolution theorem sj k rk kD M=2C1 In other words, the Fourier transform of the convolution is just individual Fourier transforms. convolution If a discrete response function is nonzero only in some range M=2 < k Ä The correlation of two functions, denoted Corr.g; h/, is defi where M is a sufficiently large even integer, then the response function is signal finite impulse response (FIR), and its duration is M . (Notice that we are defi Z 1 as the number of nonzero values of rk ; these values span a time interval of Corr.g; circumstances the C t /h. / d is the sampling times.) In most practicalh/ Á g. case of finite M kernel interest, either because the response really has1finite duration, or because we a
  • 3. Convolution • Width of kernel defines smoothing strength
  • 4. Convolution • Width of kernel defines smoothing strength convolution 1 convolution 2 signal kernel 1 kernel 2
  • 5. Convolution • Width of kernel defines smoothing strength convolution 1 convolution 2 signal kernel 1 kernel 2 • Quite fast (O(N*M)), not fast enough
  • 6. Convolution • Width of kernel defines smoothing strength convolution 1 convolution 2 signal kernel 1 kernel 2 • Quite fast (O(N*M)), not fast enough
  • 9. Map Map Map Map Map Reduce
  • 10. Map Map Map Map Map Reduce Reduce Reduce Reduce Reduce
  • 11. Map Map Map Map Map Reduce Reduce Reduce Reduce Reduce
  • 12. Build Build Build Build Build Map Map Map Map Map windows windows windows windows windows Reduce Reduce Reduce Reduce Reduce
  • 13. Build Build Build Build Build Map Map Map Map Map windows windows windows windows windows Reduce Reduce Reduce Reduce Reduce
  • 14. Build Build Build Build Build Map Map Map Map Map windows windows windows windows windows Shuffle Reduce Reduce Reduce Reduce Reduce
  • 15. Build Build Build Build Build Map Map Map Map Map windows windows windows windows windows Shuffle Reduce Convolute Reduce Convolute Reduce Convolute Reduce Convolute Reduce Convolute
  • 16. Build Build Build Build Build Map Map Map Map Map windows windows windows windows windows Shuffle Reduce Convolute Reduce Convolute Reduce Convolute Reduce Convolute Reduce Convolute
  • 17. Build Build Build Build Build Map Map Map Map Map windows windows windows windows windows Shuffle Reduce Convolute Reduce Convolute Reduce Convolute Reduce Convolute Reduce Convolute
  • 18. i Convolution in Hadoop “nr3” — 2007/5/1 — 20:53 — page 644 — #666 644 • Wrap-around problem Chapter 13. Fourier and Spectral Applications response function m+ m− sample of original function m+ m− convolution spoiled unspoiled spoiled
  • 19. Convolution in Hadoop spoiled convolution unspoiled spoiled • Wrap-around problem Figure 13.1.3. The wraparound problem in convolving finite segments of a function. Not only must the response function wrap be viewed as cyclic, but so must the sampled original function. Therefore, a portion at each end of the original function is erroneously wrapped around by convolution with the • Ignore spoiled regions response function. response function • Mirror the sequence (works well in our case) m+ m− • Zero-padding original function zero padding m− m+ not spoiled because zero m+ m− unspoiled spoiled but irrelevant
  • 20. Convolution in Hadoop • Data split problem: windowing • `Overlap-convolute’
  • 21. Convolution in Hadoop • Data split problem: windowing • `Overlap-convolute’ Map (window) timestamp1 timestamp2 timestamp3
  • 22. Convolution in Hadoop • Data split problem: windowing • `Overlap-convolute’ Mapper1 Mapper2 Mapper3 Map (window) 1 2 1 2 3 2 3 timestamp1 timestamp2 timestamp3
  • 23. Convolution in Hadoop • Data split problem: windowing • `Overlap-convolute’ Mapper1 Mapper2 Mapper3 Map (window) 1 2 1 2 3 2 3 timestamp1 timestamp2 Reduce (convolute) timestamp3
  • 24. Convolution in Hadoop • Data split problem: windowing • `Overlap-convolute’ Mapper1 Mapper2 Mapper3 Map (window) 1 2 1 2 3 2 3 timestamp1 timestamp2 Reduce (convolute) timestamp3 Emit only unpolluted data
  • 25. Convolution in Hadoop • Data split problem: windowing • `Convolute-add’
  • 26. Convolution in Hadoop • Data split problem: windowing • `Convolute-add’ Map 0 0 (convolute 0 0 with 0-padding) 0 0
  • 27. Convolution in Hadoop • Data split problem: windowing • `Convolute-add’ Map (convolute with 0-padding) Reduce (add) A A+B B B+C C Add values in overlapping regions
  • 28. Hint: Keep mappers alive • Mappers will be killed if you spend too much time in a loop (e.g. during long convolutions) • Do this in large loops: • for(loopcount%1000==0){context.progress();}
  • 29. Even faster: Fourier Transform • Converts signal from time domain to frequency domain • Stress sensor (time domain) •f • Fourier transform (frequency domain)
  • 30. Discrete Fourier Transform • Converts signal from time domain to frequency domain • Vibration sensor (time domain) • Fourier transform (frequency domain)
  • 31. H.f / and G.f /, we can form two combinatio of the two functions, denoted g h, is defined DFT for convolution g hÁ Z 1 g. /h • Convolution theorem: Note that gtransform of convolution i Fourier h is a function in the time domai 1 is product of individualthat the 2007/5/1 — 20:53 one page 643 of a#665 Fourier transforms— member — sim i “nr3” — function g h is g h ” G.f /H.f / conv • Discrete convolution13.1 Convolution and the Fourier transform FFTthe c theorem: In other words, Deconvolution Using the of individual Fourier transforms. The correlation of two functions, denoted N=2 X sj k rk ” Sn Rn Z 1 • Conditions: kD N=2C1 Corr.g; h/ Á g. 1 • Signal periodic: 0-padding (see above) of t , which is call Here Sn .n D 0; : : : ; N 1/ is the discrete Fourier transform of the valu The correlation is a function 0; : : : ; N 1/, while Rn .n D 0; : : : ; N 1/ is the discrete Fourier t • Signals of same length: Pad response ” G.f /H .f /0s c domain, and it turns out to be one member of t the values rk .k D 0; : : : ; N 1/. These values of rk are the same as f function with k D N=2 C 1; : : : ; N=2, but in wraparound order, exactly as was desc end of 12.2. Corr.g; h/ 13.1.1 Treatment of End Effects by Zero Paddingpai [More generally, the second member of the
  • 32. Discrete Fourier Transform • DFT is O(NlogN) • In Hadoop: • Modification of Parallel-FFT • Convolution: • MR-DFT • Take product of both FTs • inverse MR-DFT
  • 33. Segmentation Windowing Windowing Windowing Windowing Windowing Shuffle Convolute Convolute Convolute Convolute Convolute G’,G’’,G’’’ G’,G’’,G’’’ G’,G’’,G’’’ G’,G’’,G’’’ G’,G’’,G’’’ Emit zero-crossings