Scorpion Python Examples Documentation Release XI

Total Page:16

File Type:pdf, Size:1020Kb

Scorpion Python Examples Documentation Release XI SPE - Scorpion Python Examples Documentation Release XI Tordivel AS May 24, 2020 Contents 1 Python Primer 3 1.1 Variables and namespaces........................................3 1.2 A Script - An ordered collection of statements.............................6 1.3 Python and Scorpion...........................................8 2 Examples 01-10 9 2.1 Example 01: Calculate Area.......................................9 2.2 Example 02: Calculate mean value...................................9 2.3 Example 03: Manipulate the results from two LineFinders.......................9 2.4 Example 04: Dynamic Threshold.................................... 10 2.5 Example 05: Auto Exposure....................................... 10 2.6 Example 06: DrawLine......................................... 11 2.7 Example 07: Overlays.......................................... 11 2.8 Example 08-A: Python Methods..................................... 12 2.9 Example 08-B: Python Objects..................................... 12 2.10 Example 09: Scorpion Timing...................................... 13 2.11 Example 10: Imaging Averaging..................................... 14 3 Examples 11-20 15 3.1 Example 11: Resample Image...................................... 15 3.2 Example 12: Constant Image Contrast.................................. 16 3.3 Example 13-A: Serial Communication using PythonWin........................ 16 3.4 Example 13-B: Serial Communication in Scorpion........................... 17 3.5 Example 14: Python Results....................................... 17 3.6 Example 15: Making a result string................................... 18 3.7 Example 16: Automation by tool scripting............................... 18 3.8 Example 17: Image Manipulation with Python............................. 19 3.9 Example 18: Calculate Median Angle.................................. 20 3.10 Example 19: Iterating objects located by a blob............................. 21 3.11 Example 20: Resampling using non-linear calibration......................... 22 4 Examples 21-30 23 4.1 Example 21: Custom Scorpion Python extension............................ 23 4.2 Example 22: Accessing Scorpion Image Pixels............................. 24 4.3 Example 23: Implementing a tcp/ip Socket Server........................... 25 4.4 Example 24: Setting ExternalReference from calculated four points.................. 27 4.5 Example 25: Rotating a reference around in a circle.......................... 28 i 4.6 Example 26: Grabbing an image from an MOXA Video IP Server................... 29 4.7 Example 27: Toolbox Switch...................................... 29 4.8 Example 28: ColorMatcher Iteration................................... 29 4.9 Example 29: Audio notification..................................... 30 4.10 Example 30: Resampling using non-linear calibration......................... 30 5 Examples 31-40 33 5.1 Example 31: Client to tcp Socket Server................................. 33 5.2 Example 32: Read / Write External Data from / to file......................... 33 5.3 Example 33: Changing a tool’s ROI using ExecuteCmd........................ 34 5.4 Example 34: Histogram Equalization.................................. 35 5.5 Example 35: Robust Adam 6060 scripts................................. 36 5.6 Example 36: Bubble Sorting....................................... 38 5.7 Example 37: Element Statistics..................................... 39 5.8 Example 38: Saving Scorpion 3D Image................................ 40 5.9 Example 39 - Disabling Zoom in Image Windows........................... 40 5.10 Example 40 - Filtering timeseries.................................... 41 6 Examples 41-50 43 6.1 Example 41: Scorpion Watchdog keep system running......................... 43 6.2 Example 42: Binary Search....................................... 45 6.3 Example 43: Creating an ordered pointcloud.............................. 46 6.4 Example 44: UDP Socket Communication............................... 46 6.5 Example 45: Creating an empty pointcloud............................... 47 7 Using Arrlib from Python 49 7.1 Introduction............................................... 49 7.2 arrlibct versus pyArrlib.......................................... 50 7.3 How to get help on arrlibct........................................ 51 7.4 Data types in ArrLib and arrlibct..................................... 51 7.5 Fundamental types............................................ 52 7.6 Small vectors............................................... 52 7.7 Supported operations........................................... 53 7.8 Small matrices.............................................. 53 7.9 Supported operations........................................... 53 7.10 Poses................................................... 54 7.11 Supported operations........................................... 54 7.12 Ranges.................................................. 54 7.13 Parametric lines............................................. 55 7.14 Supported operations........................................... 55 7.15 Circles and spheres............................................ 55 7.16 Color pixels............................................... 55 7.17 Important note on garbage collection.................................. 56 7.18 Geometric recipes............................................ 56 7.19 Planar geometry............................................. 56 7.20 Working with homogeneous lines and points in the plane........................ 59 7.21 Fitting points to a straight line...................................... 60 7.22 Transformation of normal vectors and homogeneous lines........................ 61 7.23 3D space geometry............................................ 61 7.24 3D point transformations......................................... 61 7.25 Merging two point clouds in Scorpion.................................. 62 7.26 Intersecting lines in 3D.......................................... 62 7.27 Python Script Samples.......................................... 63 8 Using ScorpionOpenCV 67 ii 8.1 Introduction............................................... 67 8.2 Image filters............................................... 68 8.3 ImageFilter examples.......................................... 69 8.4 Code examples.............................................. 69 9 Release notes 71 10 Indices and tables 73 iii iv SPE - Scorpion Python Examples Documentation, Release XI The Scorpion Python Examples provides valuable insight in Scorpion Vision Python Scripting. Python is what has made Scorpion a powerful machine vision framework. Scorpion is extended by the important open-source libraries Numpy, Scipy and OpenCV. Most of these powerful API are exposed by a smooth python interface. Fig. 1: Tool script automate candles processing The Scorpion Python Modules provides the source code and documentation for all python modules with Scorpion Vision Software. Contents: Contents 1 SPE - Scorpion Python Examples Documentation, Release XI 2 Contents CHAPTER 1 Python Primer This section will provide a short introduction to namespaces in Scorpion and Python. These concepts are important for everybody who wants to exploit the power of Python in Scorpion. 1.1 Variables and namespaces All variables in Python, and every other programming language, are created and exist in a namespace. What is a namespace? Using PythonWin, an integral part for Python Extension for Windows, or Idle - yet another Python environment, one can play with namespaces. An assignment is a statement of type a=b where a is a variable and b another variable, constant, constructor or function. a=100 b=1.03 c=’spam’ e=[] f={} g=eggs() are assignments where: a is assigned an integer value, b a floating point value, c a string e an empty list f an empty dictionary g the value of function or a reference to an instance of a class When Python is initialized, a namespace is created. It is available for declaration of variables, functions and objects. Declarations: 3 SPE - Scorpion Python Examples Documentation, Release XI a=100 def foo(b): print ‘a=’,a,’b=’,b The statement: foo(200) Will yield the output: a=100b=200 Python searches for a local definition of a in foo(). If not found Python search in the global namespace. If a local variable is defined in foo() the result will be as follows: Declarations: a=100 def foo(b): a=300 print ‘a=’,a,’b=’,b The statement: foo(200) Will yield the output: a=300b=200 The statement: print ‘a=’,a Will yield the output: a=100 Functions and name spaces can be nested: a=100 def foo(b): a=300 def spam(b): a=400 print ‘a=’,a,’b=’,b spam(500) print ‘a=’,a,’b=’,b The statement: foo(200) Will yield the output 4 Chapter 1. Python Primer SPE - Scorpion Python Examples Documentation, Release XI a=400b=500 a=300 200 The statement: print ‘a=’,a Will yield the output: a=100 Lets modify this slightly: a=100 def foo(b): def spam(b): print ‘a=’,a,’b=’,b spam(500) print ‘a=’,a,’b=’,b The statement: foo(200) Will yield the output: a=100b=500 a=100b=200 The statement: print ‘a=’,a Will yield the output: a=100 Python finds the value of a by searching in the nested namespaces. To change a global variable we can instruct Python to do so. a=100 def foo(b): def spam(b): global a a=b print ‘a=’,a,’b=’,b spam(500) print ‘a=’,a,’b=’,b The statement: foo(200) Will yield the output: 1.1. Variables and namespaces 5 SPE - Scorpion Python Examples Documentation, Release XI a=500b=500 a=500b=200 The statement: print ‘a=’,a Will yield the output: a=500 1.2 A Script - An ordered collection
Recommended publications
  • International Journal of Applied Science and Research
    International Journal of Applied Science and Research FLOOD FREQUENCY ANALYSIS USING GUMBEL DISTRIBUTION EQUATION IN PART OF PORT HARCOURT METROPOLIS Eke, Stanley N. & Hart, Lawrence Department of Surveying and Geomatics, Rivers State University, Port Harcourt, Nigeria IJASR 2020 VOLUME 3 ISSUE 3 MAY – JUNE ISSN: 2581-7876 Abstract – The adequacy of the Gumbel distribution equation for hydrological extremes, with regards to rainfall extreme, is very paramount in hydrologic studies and infrastructural development of any region. This study investigates how the Gumbel distribution equation model and rainfall data set can be used to analyse flood frequency and flood extreme ratio of any given spatial domain and underscore its significance in the application of the model in geo-analysis of varying environmental phenomena. The classical approach of periodic observation of flood heights was deployed over a consistent number of rainfall days in addition to the determination of rainfall intensity and flow rate using relevant hydrological models over a period of time from available rainfall information. The geospatial height data of the western part of the Port Harcourt city metropolis being the study area was also provided. The result showed that a flood peak of 82cm was determined to have a sample mode of 0.532 in relation to sample size of 30 with an associated standard deviation of 1.1124. The result showed that from the frequency curve, the occurrence of smaller floods with a flood peak height of 90cm will be symmetrical and skewed. We assert that the Gumbel distribution equation model serves as a veritable tool for quick and efficient flood analysis and prediction for the study area.
    [Show full text]
  • An Estimation of the Probability Distribution of Wadi Bana Flow in the Abyan Delta of Yemen
    Journal of Agricultural Science; Vol. 4, No. 6; 2012 ISSN 1916-9752 E-ISSN 1916-9760 Published by Canadian Center of Science and Education An Estimation of the Probability Distribution of Wadi Bana Flow in the Abyan Delta of Yemen Khader B. Atroosh (Corresponding author) AREA, Elkod Agricultural Research Station, Abyan, Yemen P.O. Box 6035, Kormaksar, Aden Tel: 967-773-229-056 E-mail: [email protected] Ahmed T. Moustafa International Center for Agricultural Research in the Dry Areas (ICARDA) Dubai Office, P.O. Box 13979, Dubai, UAE Tel: 971-50-636-7156 E-mail: [email protected] Received: January 5, 2012 Accepted: January 29, 2011 Online Published: April 17, 2012 doi:10.5539/jas.v4n6p80 URL: http://dx.doi.org/10.5539/jas.v4n6p80 Abstract Wadi Bana is one of the main Wadies in Yemen, where different quantities of water reach the Delta and depends on the amounts of rainfall in the wadi watershed. In order to estimate the spate water flow distribution probability, data on water flow were collected during the period from 1948 to 2008. Seven probability distributions, namely, Gamma, Weibull, Pearson 6, Rayleigh, Beta, Kumaraswamy and Exponential distributions were tested to model the distribution of the Wadi Bana flows and Kolmogorov-Smirnov, Anderson-Darling and Chi- Squared goodness-of-fit tests were used to evaluate the best fit at 5 % level of significance. It suggests that the best frequency distribution obtained for the Wadi Bana flows in the Abyan Delta of Yemen is Gamma followed by weibull distribution for both summer and autumn seasons.
    [Show full text]
  • Logistic Distribution Becomes Skew to the Right and When P>1 It Becomes Skew to the Left
    FITTING THE VERSATILE LINEARIZED, COMPOSITE, AND GENERALIZED LOGISTIC PROBABILITY DISTRIBUTION TO A DATA SET R.J. Oosterbaan, 06-08-2019. On www.waterlog.info public domain. Abstract The logistic probability distribution can be linearized for easy fitting to a data set using a linear regression to determine the parameters. The logistic probability distribution can also be generalized by raising the data values to the power P that is to be optimized by an iterative method based on the minimization of the squares of the deviations of calculated and observed data values (the least squares or LS method). This enhances its applicability. When P<1 the logistic distribution becomes skew to the right and when P>1 it becomes skew to the left. When P=1, the distribution is symmetrical and quite like the normal probability distribution. In addition, the logistic distribution can be made composite, that is: split into two parts with different parameters. Composite distributions can be used favorably when the data set is obtained under different external conditions influencing its probability characteristics. Contents 1. The standard logistic cumulative distribution function (CDF) and its linearization 2. The logistic cumulative distribution function (CDF) generalized 3. The composite generalized logistic distribution 4. Fitting the standard, generalized, and composite logistic distribution to a data set, available software 5. Construction of confidence belts 6. Constructing histograms and the probability density function (PDF) 7. Ranking according to goodness of fit 8. Conclusion 9. References 1. The standard cumulative distribution function (CDF) and its linearization The cumulative logistic distribution function (CDF) can be written as: Fc = 1 / {1 + e (A*X+B)} where Fc = cumulative logistic distribution function or cumulative frequency e = base of the natural logarithm (Ln), e = 2.71 .
    [Show full text]
  • Thomas Haslwanter with Applications in the Life Sciences
    Statistics and Computing Thomas Haslwanter An Introduction to Statistics with Python With Applications in the Life Sciences Statistics and Computing Series editor W.K. Härdle More information about this series at http://www.springer.com/series/3022 Thomas Haslwanter An Introduction to Statistics with Python With Applications in the Life Sciences 123 Thomas Haslwanter School of Applied Health and Social Sciences University of Applied Sciences Upper Austria Linz, Austria Series Editor: W.K. Härdle C.A.S.E. Centre for Applied Statistics and Economics School of Business and Economics Humboldt-Universität zu Berlin Unter den Linden 6 10099 Berlin Germany The Python code samples accompanying the book are available at www.quantlet.de. All Python programs and data sets can be found on GitHub: https://github.com/thomas- haslwanter/statsintro_python.git. Links to all material are available at http://www.springer. com/de/book/9783319283159. The Python solution codes in the appendix are published under the Creative Commons Attribution-ShareAlike 4.0 International License. ISSN 1431-8784 ISSN 2197-1706 (electronic) Statistics and Computing ISBN 978-3-319-28315-9 ISBN 978-3-319-28316-6 (eBook) DOI 10.1007/978-3-319-28316-6 Library of Congress Control Number: 2016939946 © Springer International Publishing Switzerland 2016 This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
    [Show full text]
  • Mining Data Management Tasks in Computational Santiago Miguel Notebooks: an Empirical Cepeda Analysis of Zurich, Switzerland
    MSc Thesis September 13, 2020 Mining Data Management Tasks in Computational Santiago Miguel Notebooks: an Empirical Cepeda Analysis of Zurich, Switzerland Student-ID: 12-741-385 [email protected] Advisor: Cristina Sarasua Prof. Abraham Bernstein, PhD Institut f¨urInformatik Universit¨atZ¨urich http://www.ifi.uzh.ch/ddis Acknowledgements I would like to thank Prof. Abraham Bernstein for giving me the opportunity to write my thesis at the Dynamic and Distributed Information System Group of the University of Zurich. I would also like to give my sincerest gratitude to Cristina Sarasua, who was my supervisor for the duration of this thesis. She went above and beyond to give me the right guidance and tools that were necessary for me to do my work. Furthermore, she not only made sure that I always stayed on track, but her constant support and valuable insights were invaluable to this thesis. Zusammenfassung Das Ziel dieser Arbeit ist, das Verst¨andnisdar¨uber zu vertiefen, wie Datenwissenschaftler arbeiten und dies insbesondere im Hinblick auf die Aufgaben des Datenmanagements. Die Motivation hinter dieser Arbeit ist, die vorherrschende L¨ucke in Bezug auf die man- gelnde empirische Evidenz zu den konkreten Datenmanagementaufgaben in der Daten- wissenschaft zu f¨ullen.Ebenfalls von Interesse ist zu erkennen, welche Rolle die Daten- managementaufgaben in Bezug auf den gesamten datenwissenschaftlichen Prozess spielt. Dar¨uber hinaus wird das Hauptaugenmerk auf die Analyse spezifischer Datenbereinigungs- und Datenintegrationsaufgaben innerhalb des Datenmanagements gelegt. Dieses Ziel wird durch Etikettierung, Data-Mining und die Anwendung statistischer Tests auf Daten- Wissenschaft-Notebooks aus der realen Welt erreicht. Dabei erh¨altman ein Schl¨usselwort- Kennzeichnungssystem, das in der Lage ist, mehrere Arten von Zellen innerhalb von Daten-Wissenschaft-Notebooks zu identifizieren und zu kennzeichnen.
    [Show full text]
  • An R Package for the Optimization of Stratified Sampling
    JSS Journal of Statistical Software October 2014, Volume 61, Issue 4. http://www.jstatsoft.org/ SamplingStrata: An R Package for the Optimization of Stratified Sampling Giulio Barcaroli Italian National Institute of Statistics (Istat) Abstract When designing a sampling survey, usually constraints are set on the desired precision levels regarding one or more target estimates (the Y 's). If a sampling frame is available, containing auxiliary information related to each unit (the X's), it is possible to adopt a stratified sample design. For any given stratification of the frame, in the multivariate case it is possible to solve the problem of the best allocation of units in strata, by minimizing a cost function subject to precision constraints (or, conversely, by maximizing the precision of the estimates under a given budget). The problem is to determine the best stratification in the frame, i.e., the one that ensures the overall minimal cost of the sample necessary to satisfy precision constraints. The X's can be categorical or continuous; continuous ones can be transformed into categorical ones. The most detailed stratification is given by the Cartesian product of the X's (the atomic strata). A way to determine the best stratification is to explore exhaustively the set of all possible partitions derivable by the set of atomic strata, evaluating each one by calculating the corresponding cost in terms of the sample required to satisfy precision constraints. This is unaffordable in practical situations, where the dimension of the space of the partitions can be very high. Another possible way is to explore the space of partitions with an algorithm that is particularly suitable in such situations: the genetic algorithm.
    [Show full text]
  • A Neural Networks Approach for Improving the Accuracy of Multi-Criteria Recommender Systems
    Article A Neural Networks Approach for Improving the Accuracy of Multi-Criteria Recommender Systems Mohammed Hassan *,† and Mohamed Hamada † Software Engineering Lab, Graduate School of Computer Science and Engineering, University of Aizu, Aizuwakamatsu-city 965-8580, Japan; [email protected] * Correspondence: [email protected] † These authors contributed equally to this work. Received: 28 July 2017; Accepted: 16 August 2017; Published: 25 August 2017 Abstract: Accuracy improvement has been one of the most outstanding issues in the recommender systems research community. Recently, multi-criteria recommender systems that use multiple criteria ratings to estimate overall rating have been receiving considerable attention within the recommender systems research domain. This paper proposes a neural network model for improving the prediction accuracy of multi-criteria recommender systems. The neural network was trained using simulated annealing algorithms and integrated with two samples of single-rating recommender systems. The paper presents the experimental results for each of the two single-rating techniques together with their corresponding neural network-based models. To analyze the performance of the approach, we carried out a comparative analysis of the performance of each single rating-based technique and the proposed multi-criteria model. The experimental findings revealed that the proposed models have by far outperformed the existing techniques. Keywords: recommender systems; artificial neural network; simulated annealing; slope one algorithm; singular value decomposition 1. Introduction Recommender systems (RSs) are software tools that have been widely used to predict users’ preferences and recommend useful items that might be interesting to them. The rapid growth of online services such as e-commerce, e-learning, e-government, along with others, in conjunction with the large volume of items in their databases makes RSs become important instruments for recommending interesting items that are not yet seen by users.
    [Show full text]
  • Python in Hydrology In
    Python In Hydrology Version 0.0.0 Sat Kumar Tomer Copyright © 2011 Sat Kumar Tomer. Printing history: November 2011: First edition of Python in Hydrology. Permission is granted to copy, distribute, and/or modify this document under the terms of the GNU Free Doc- umentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and with no Back-Cover Texts. The GNU Free Documentation License is available from www.gnu.org or by writing to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. The original form of this book is LATEX source code. Compiling this LATEX source has the effect of generating a device-independent representation of a textbook, which can be converted to other formats and printed. iv Preface History I started using Python in July 2010. I was looking for a programming language which is open source, and can combine many codes/modules/software. I came across Python and Perl, though there might be many more options available. I googled the use of Python and Perl in the field of general scientific usage, hydrology, Geographic Information System (GIS), statistics, and somehow found Python to be the language of my need. I do not know if my conclusions about the Python versus Perl were true or not? But I feel happy for Python being my choice, and it is fulfilling my requirements. After using Python for two-three months, I become fond of open source, and started using only open source software, I said good-bye to Windows, ArcGis, MATLAB.
    [Show full text]
  • N 7 a - 1 9 46 5
    N 7 a - 1 9 46 5 NASA CR-120967 MODERN METHODOLOGY OF DESIGNING TARGET RELIABILITY INTO ROTATING MECHANICAL COMPONENTS by Dimitri B. Kececioglu and Louie B. Chester THE UNIVERSITY OF ARIZONA College of Engineering Engineering Experiment Station FILE COPY Prepared for NATIONAL AERONAUTICS AND SPACE ADMINISTRATION NASA Lewis Research Center Grant NCR 03-002-044 1. Report No. 2. Government Accession No. 3. Recipient's Catalog No. NASA CR-120967 4. Title and Subtitle 5. Report Date MODERN METHODOLOGY OF DESIGNING TARGET January 31, 1973 6. Performing Organization Code RELIABILITY INTO ROTATING MECHANICAL COMPONENTS 7. Author(s) 8. Performing Organization Report No. Dimitri B. Kececioglu and Louie B. Chester 10. Work Unit No. 9. Performing Organization Name and Address The University of Arizona 11. Contract or Grant No. Tucson, Arizona 85721 NCR 03-022-044 13. Type of Report and Period Covered 12. Sponsoring Agency Name and Address Contractor Report National Aeronautics and Space Administration 14. Sponsoring Agency Code Washington, D.C. 20546 15. Supplementary Notes Project Manager, Vincent R. Lalli, Spacecraft Technology Division, NASA Lewis Research Center, Cleveland, Ohio 16. Abstract Theoretical research done for the development of a methodology for designing specified reliabilities into rotating mechanical components is referenced to prior reports submitted to NASA on this research. Experimentally determined distributional cycles-to-failure versus maximum alternating nominal strength (S-N) diagrams, and distributional mean nominal strength versus maximum alternating nominal strength (Goodman) diagrams are presented. These distributional S-N and Goodman diagrams are for AISI 4340 steel, R 35/4' hardness, round, cylindrical specimens 0.735 in.
    [Show full text]
  • Python with Applications in the Life Sciences Statistics and Computing
    Statistics and Computing Thomas Haslwanter An Introduction to Statistics with Python With Applications in the Life Sciences Statistics and Computing Series editor W.K. Härdle More information about this series at http://www.springer.com/series/3022 Thomas Haslwanter An Introduction to Statistics with Python With Applications in the Life Sciences 123 Thomas Haslwanter School of Applied Health and Social Sciences University of Applied Sciences Upper Austria Linz, Austria Series Editor: W.K. Härdle C.A.S.E. Centre for Applied Statistics and Economics School of Business and Economics Humboldt-Universität zu Berlin Unter den Linden 6 10099 Berlin Germany The Python code samples accompanying the book are available at www.quantlet.de. All Python programs and data sets can be found on GitHub: https://github.com/thomas- haslwanter/statsintro_python.git. Links to all material are available at http://www.springer. com/de/book/9783319283159. The Python solution codes in the appendix are published under the Creative Commons Attribution-ShareAlike 4.0 International License. ISSN 1431-8784 ISSN 2197-1706 (electronic) Statistics and Computing ISBN 978-3-319-28315-9 ISBN 978-3-319-28316-6 (eBook) DOI 10.1007/978-3-319-28316-6 Library of Congress Control Number: 2016939946 © Springer International Publishing Switzerland 2016 This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
    [Show full text]
  • Reliability Release 0.6.0
    reliability Release 0.6.0 Jul 23, 2021 Quickstart Intro 1 Quickstart for reliability 3 2 Introduction to the field of reliability engineering7 3 Recommended resources 9 4 Equations of supported distributions 13 5 What is censored data 19 6 Creating and plotting distributions 25 7 Fitting a specific distribution to data 31 8 Fitting all available distributions to data 45 9 Mixture models 53 10 Competing risks models 63 11 DSZI models 73 12 Optimizers 87 13 Probability plots 91 14 Quantile-Quantile plots 103 15 Probability-Probability plots 109 16 Kaplan-Meier 113 17 Nelson-Aalen 119 18 Rank Adjustment 123 19 What is Accelerated Life Testing 127 20 Equations of ALT models 131 i 21 Getting your ALT data in the right format 135 22 Fitting a single stress model to ALT data 137 23 Fitting a dual stress model to ALT data 147 24 Fitting all available models to ALT data 157 25 What does an ALT probability plot show me 165 26 Datasets 171 27 Importing data from Excel 175 28 Converting data between different formats 181 29 Reliability growth 187 30 Optimal replacement time 189 31 ROCOF 193 32 Mean cumulative function 195 33 One sample proportion 201 34 Two proportion test 203 35 Sample size required for no failures 205 36 Sequential sampling chart 207 37 Reliability test planner 211 38 Reliability test duration 215 39 Chi-squared test 219 40 Kolmogorov-Smirnov test 223 41 SN diagram 227 42 Stress-strain and strain-life 231 43 Fracture mechanics 241 44 Creep 247 45 Palmgren-Miner linear damage model 251 46 Acceleration factor 253 47 Solving simultaneous
    [Show full text]
  • An R Companion for the Handbook of Biological Statistics
    AN R COMPANION FOR THE HANDBOOK OF BIOLOGICAL STATISTICS SALVATORE S. MANGIAFICO Rutgers Cooperative Extension New Brunswick, NJ VERSION 1.3.3 i ©2015 by Salvatore S. Mangiafico, except for organization of statistical tests and selection of examples for these tests ©2014 by John H. McDonald. Used with permission. Non-commercial reproduction of this content, with attribution, is permitted. For-profit reproduction without permission is prohibited. If you use the code or information in this site in a published work, please cite it as a source. Also, if you are an instructor and use this book in your course, please let me know. [email protected] Mangiafico, S.S. 2015. An R Companion for the Handbook of Biological Statistics, version 1.3.3. rcompanion.org/documents/RCompanionBioStatistics.pdf . (Web version: rcompanion.org/rcompanion/ ). ii Table of Chapter Introduction ............................................................................................................................... 1 Purpose of This Book.......................................................................................................................... 1 The Handbook for Biological Statistics ................................................................................................ 1 About the Author of this Companion .................................................................................................. 1 About R ............................................................................................................................................
    [Show full text]