Home > error in > error in fit function is zombie

Error In Fit Function Is Zombie

installing and running ROOT here. Please post bug reports in Jira. Moderator: rootdev Post Reply Search Advanced search First unread post • 6 posts • Page 1 of 1 mcunha Posts: 2 Joined: Fri Jun 11, 2010 2:11 Problem fitting with a Voigt function Quote Unread postby mcunha » Fri Jun 11, 2010 11:45 Hi,I am trying to make a fit with the Voigt function, but it always gives some errors. I have tried these alternatives:TF1 *vfit;(1) vfit = new TF1("vfit", "voigt", 0., 180.);(2) vfit = new TF1("vfit", "Voigt", 0., 180.);(3) vfit = new TF1("vfit", "TMath::Voigt", 0., 180.);(4) vfit = new TF1("vfit", "TMath::voigt", 0., 180.);(5) vfit = new TF1("vfit", TMath::Voigt, 0., 180.);(6) vfit = new TF1("vfit", TMath::voigt, 0., 180.); h1LatScat->Fit(vfit, "RS"); vfit->SetLineColor(3); vfit->Draw("same");The alternatives (1), (2), (3), (4) compile (make), but when I run the file it gives:Error in : Bad numerical expression : "voigt"Error in : function: vfit/voigt has 0 parameters instead of 1Error in : function is zombieThe alternatives (5), (6) don't compile and give the error that the expressions are ambiguous:call of overloaded ‘TF1(const char [5], Double_t (&)(Double_t, Double_t, Double_t, Int_t), double, double)’ is ambiguous /home/micaela/root/include/TF1.h:98: note: candidates are: TF1::TF1(const char*, ROOT::Math::ParamFunctor, Double_t, Double_t, Int_t) /home/micaela/root/include/TF1.h:94: note: TF1::TF1(const char*, Double_t (*)(const Double_t*, const Double_t*), Double_t, Double_t, Int_t) /home/micaela/root/include/TF1.h:93: note: TF1::TF1(const char*, Double_t (*)(Double_t*, Double_t*), Double_t, Double_t, Int_t) The most curious fact about all of this is if I use:vfit = new TF1("vfit", "gaus", 0., 180.);It runs wonderfully... Thanks in advance, Micaela Top brun Posts: 5831 J

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: https://root.cern.ch/phpBB3/viewtopic.php?t=10567 Sign up Use behat with zombieJS to click on an element gives a DriverException up vote 1 down vote favorite I am using behat with a zombie driver to test my application. Now I am trying to click on an element (a td), to fire an ajax request. But when clicking this element I receive the error: Error while processing event 'click' http://stackoverflow.com/questions/29004647/use-behat-with-zombiejs-to-click-on-an-element-gives-a-driverexception (Behat\Mink\Exception\DriverException The code I use is from this thread Nowhere on the internet I can find someone with the same error message, so I have no clue how to solve this. The HTML I want to click on looks like this: 2 These javascript functions do an ajax call to the server and do nothing with the saved result (no success method). The test function I use looks like this: /** * @Given /^I click td "([^"]*)"$/ */ public function iClickTd($id) { $locator = "#$id"; $element = $this->getSession()->getPage()->find('css', $locator); if (null === $element) { throw new \InvalidArgumentException(sprintf('Could not evaluate CSS selector: "%s"', $locator)); } $element->click(); $this->getSession()->wait(1000); } And in the test I have: And I click td "37_12_2" The behat.yml: default: suites: default: contexts: - FeatureContext: - http://localhost/ extensions: Behat\MinkExtension\ServiceContainer\MinkExtension: base_url: http://localhost/ sessions: default: goutte: ~ javascript: zombie: node_modules_path: '/usr/lib/node_modules/' Used versions: "phpunit/phpunit": "4.5.*", "phpspec/phpspec": "~2.1", "behat/behat": "~3.0", "behat/mink": "~1.6", "behat/mink-extension": "~2.0", "behat/mink-goutte-driver": "*", "behat/mink-zombie-driver": "~1.2" npm v1.4.28 php 5.6 Does anyone know what goes wrong, and how I can make this function work? behat zombie.js share|improve this questi

here for a quick overview of the site Help Center Detailed answers to any questions you https://stackoverflow.com/questions/39331749/nodejs-express-reactjs-component-causes-timeout-error-while-testing-a-view-usi might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community error in of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up NodeJS Express | ReactJS component causes timeout error while testing a view using Mocha and ZombieJS up vote 0 down vote favorite I have added to my Node ExpressJS app some components in ReactJS. Since error in fit I introduced these components, my tests are failing due to timeout error. My test suites is including mocha, zombie, chai and sinon, but the first two are enough to reproduce the error. This is the test: // tests/home-tests.js process.env.NODE_ENV = 'test'; var app = require('../index.js'); var Browser = require('zombie'); describe('Homepage Tests', function() { before(function(){ server = app.listen(3002); browser = new Browser({ site: 'http://localhost:3002' }); }) it('should render title', function(done){ browser.visit('/', function() { browser.assert.text('h1', 'A test page for ReactJS'); done(); }) }); after(function(done) { server.close(done); }); }); This is the layout: // views/layouts/main.handlebars Zombie ReactJS Test! {{{_sections.page_stylesheets}}} {{{body}}} {{{_sections.page_javascripts}}} This is the view I want to test:

A test page for ReactJS

{{#section 'page_stylesheets'}} {{/section}} {{#section 'page_javascripts'}}
 

© Copyright 2019|winbytes.org.