Posts

How can I set up a t-test that tests whether one sample is larger than another in R? -

I got two sets of measurements of air particles in two places (24 samples taken per hour) I know How will it know if the tools are the same (they are not), but I have been tasked to test that the particle is more than concentration (building1_air) more than (building2_air). This is my first time with R software (or for any thing) that the T-test command (if it is the correct word) should be compared with two samples? I am grateful for any help. t.test (building1_error, building2_ar, optional = "live") Because your optional hyphen is not the default (which is a two test test)

parallel processing - OPEN CL, Python and parallelisation -

As a starter in Openclass, I have a simple understanding question to optimize GPU computing. As far as I can understand that I can make a matrix of 1000 X 1000 and can insert a code on a single pixel using a GPU at the same time. About the following option: I have 100x100 x 100 matrix and they need to be calculated separately. So I should make serial / or I can start 100 instances, that is, I start 100 Python multiprocesses and shoots a matrix calculation for every single GPU (assumption is enough resources). On the other hand, I have a matrix of 1000 x 1000 and 100 different examples to calculate, can I do it at the same time or as a serial processing ? How to resolve any advice or concept in the fastest way. Thanks Adrian The OpenCL execution model revolves around the kernel, which is executed only for each point in your problem domain. When you launch a kernel for execution on your OpenCL device, you define the 1, 2, or 3-dimensional index space for this dom...

excel - How did I read .txt files and convert to a .xlsx files in matlab? -

तो मेरे पास यह अब तक है file = fileread (filenames.txt); Data = textscan (फ़ाइल, '#:% 2d \ t क्षेत्र:% 5d \ t XP:% 4d Yp:% 4d \ t लंबाई:% 3d B #:% 2d \ t R:% 2d L:% 2d Ch:% 2d \ t समाप्ति 1: एक्सपी:% 4d Yp:% 4d \ t एंड 2: एक्सपी:% 4d Yp:% 4d \ n '); डेटा = [डेटा {1}, num2cell ([डेटा {2: अंत}])]; xlswrite ('filenames.xlsx', डेटा); लेकिन मेरी पाठ फ़ाइल इस तरह दिखती है (विभिन्न पंक्तियों वाली फाइलें, उदाहरण के लिए 9 से अधिक फाइल इंडेक्स पंक्ति) फ़ाइल अनुक्रमणिका: 20 9 563 #: 1 क्षेत्र: 939 एक्सपी: -397 वाईपी: 586 लंबाई: 99 बी #: 2 आर: 2 एल: 0 च: -1 अंत 1: एक्सपी: -450 वाईपी: 588 एंड 2: एक्सपी: -352 वाईपी: 572 #: 2 क्षेत्र: 1185 एक्सपी: -287 वाईपी: 294 लंबाई: 145 बी #: 2 आर: 1 एल: 1 सीएच: 0 एंड 1: एक्सपी: -317 वाईपी: 35 9 एंड 2: एक्सपी: -235 वाईपी: 244 #: 3 एरिया: 592 एक्सपी: -242 वाईपी: 486 लंबाई: 77 बी #: 3 आर: 2 एल: 1 च: 0 समाप्ति 1: एक्सपी: -278 वाईपी: 488 एंड 2: एक्सपी: -202 वाईपी: 477 #: 4 क्षेत्र: 818 एक्सपी : -144 वाईपी: 480 लंबाई: 60 बी #: 2 आर: 0 एल: ...

php - mysql error in my page -

I need help with a problem that I'm connecting to my database and what I want I have already programmed in PHP and have never run into this problem. I'm getting this error message. There is an error in your SQL syntax; & lt ;? Php $ con = mysqli_connect ("localhost", "root", "", "the specialist"); $ Username = $ _GET ['Username']; $ Query = "SELECT * FROM` character 'WHERE' username '= $ user name'; $ Data = mysqli_query ($ con, $ query) or die (mysqli_error ($ con)); ? & Gt; Using a PDO, this is a port of your code, maybe it will be of interest, connect to the database using don 'A' PDO {$ db = new PDO ('mysql: host = localhost; dbname = thespianassistant', Use 'old mysql_ * functions. & quot; route', 'you_should_set_a_password'); $ Db- & gt; Set attribute (PDO :: ATTRRAMOD, PDO :: ERRMODE_EXCEPTION); $ Db- & gt; Set attribute (PDO ::...

javascript - PHP Redirect to an anchor tag -

I want to navigate from another page to the bottom of the home page. Where in the section you want to navigate on the home page: & lt; Div name = "id =" about "class =" about-us "& gt; Everywhere I read it, what to do to link you to this page and this place says: However, it does not work Edit: Every time I click on the link, the browser does nothing, like That this is not a link. Take this example: I am on the homepage, I click on a link for #about, scrolls it down #about, no problem. I do not have a page which is not a home page, I click on the #about link, the browser does nothing, I do not even take me back to the home page. The code will work fine in your example, so some more potentially jumping is prevented. , If you have a form on the page that has its own focus.

excel - VBA code to search contacts on another sheet -

I am creating a workbook that has an add and search area on the first sheet and a contact list on the other sheet; Last name, first name, #, address and email I have come to know how to add contacts to this sheet, but I can not understand how to search for this list (second sheet) for contact, also the first sheet And it is displayed back on the first sheet I know I probably need a string, but how do I set it up? You might use this code: = ComboBox1.Value as the dim border, after:. = Cells (1, 1), looking at: = xlValues, lookAt: Sheet ("Sheet2") on error set = rfound = .Columns (1) .Find (start with what is next = _ xlPart, SearchOrder: = XlByRows, SearchDirection: = xlNext, MatchCase: false =, SearchFormat:. = False) Goto 0 on the error is nothing rfound then then sub application.Goto rfound, if it is true to exit the sheet ("Sheet1") Range ("A1") = Rfound.Offset (0, 0) In this code you use columns for your data (last name, first name, #, a...

Owin: how to pass arguments to my own startup class? -

I am trying to develop a web API self-hosting app using OVIN in my XyzStartup class, Argument is required: contentFolderPath. However, I could not find any way to pass this argument. Here's my code: var contentFolderPath = this.TextBox.Text; // user input var startOptions = new initial option (); (Style Content FolderPath) {... (Start Control FolderPath) {... (Start Controller Folder)}} I saw a startup class, but how to use it. I can already use it in my XyzStartup class thanks I finally find a way to do this ?! on StartOptions = new initial option (); StartOptions.Urls.Add ('.. some url ..'); WebApp.Start (startOptions, (appBuilder) = & gt; {New XyzStartup (contentFolderPath) .Configuration (appBuilder);} If you want to pass the parameter to the startup category, you can use the action in the WebApp.Start in Cillià © Malan's As a result, your mention in the comment, rather than starting with the type parameter ( WebApp.Start & lt; ...