Home Posts Topics Members FAQ
KARTHIK RAJA
1 New Member
I am looking for a way to use Excel LINEST, functions in C/C++. Do Microsoft or any third parties offer good tools to enable?? or where can i get the back end coding LINEST function.. to implement in my c program for my controller??
Thank you.
Dec 12 '11 #1
Subscribe Reply
2 4657
weaknessforcats 9,208 Recognized Expert Moderator Expert
http://msdn.microsoft.com/ko-kr/libr...ffice.11).aspx
I am not an expert here but this link looks promising.
Dec 12 '11 #2
reply
Rabbit 12,516 Recognized Expert Moderator MVP
So basically what you want is simple linear regression? There exists formulas to calculate regressions.
Expand|Select|Wrap|Line Numbers
- y=ax+b
- a=r*s(y)/s(x)
- b=average(y)-a*average(x)
- s(z)=square_root(1/(N-1)*sigma((z-average(z))^2))
- n=samplesize
- r=sigma((x-average(x))*(y-average(y)))/square_root(sigma(x-average(x))^2)/square_root(sigma(y-average(y))^2)
That's the first level of formulas you will need. I don't think I need to go over how to calculate an average. r is pearson's coefficent and s is the standard deviation. Sigma is the mathematical symbol for summation where you calculate and add all values together.
Dec 12 '11 #3
reply
Sign in to post your reply or Sign up for a free account.
Similar topics
2 9495 Export to Excel by: jeffgeorge |last post by: I'm currently exporting a form to Excel. Because there are controls and totals in the header, I first have a button for users to convert to a datasheet. Then I use the automated quick office Export to Excel Link then I have a button which returns the user to a form view. It's a 3 step process with the user needing to Save As in Excel if they wish to keep the spreadsheet. Are there any other easier options? It seems I should be able... Microsoft Access / VBA |
17 6348 Excel Automation by: Mansi |last post by: I need to do some research on how to use excel automation from c#. Does anyone know of any good books related to this subject? Thanks. Mansi C# / C Sharp |
1 3494 Use Excel functions in C# by: Scott P |last post by: I am looking for a way to use several Excel functions (e.g. LINEST, LOGEST and RSQ) in C#. Do Microsoft or any third parties offer good tools to enable the use of such functions from within C# without having to launch or access Excel? If so, where may these be found? Thank you. C# / C Sharp |
2 21954 Excel Process ID by: Powerguy |last post by: Hi all, I am looking for a way to get the Process id (or a handle) of an EXCEL process created from within my code. For example when the following code is executed: Dim EXL As Excel.Application = New Excel.Application a new instance of EXCEL.EXE is created in the task manager. Visual Basic .NET |
1 6334 calling excel function LinEst from VB by: jobxyz |last post by: Hi I am trying to call the excel function linest from VB using automation. the call Slope1 = Excel.WorksheetFunction.Index(Excel.WorksheetFunction.LinEst(y, x),1) works fine as long as x is a one dimensional array. Microsoft Access / VBA |
2 7408 LINEST Function by: GhanaShyam |last post by: Hi, How can I use the LINEST functionality of Excel in my .NET code. Can I use the Excel interopability dll or should I write the function code? Thanks in Advance GS. C# / C Sharp |
4 10476 Replicating excel function LinEst in Access VBA by: David_from_Chicago |last post by: What I am trying to do is to simulate the LINEST functionality from Excel in Access through VBA. When I use LinEst in Excel I can get back five statistical results. Here are is the formula array I use: Slope{=LINEST(H72:H94,I72:I94,TRUE,TRUE)} SE{=LINEST(H72:H94,I72:I94,TRUE,TRUE)} RSquared{=LINEST(H72:H94,I72:I94,TRUE,TRUE)} F-Stat{=LINEST(H72:H94,I72:I94,TRUE,TRUE)} Microsoft Access / VBA |
4 11590 Excel reference by: Looch |last post by: Thanks in advance for any help. I'm having trouble with this code: Dim xlsApp As Excel.Application Dim xlsWB As Excel.Workbook xlsApp = New Excel.Application xlsApp.Visible = True ...... The problem is Excel.Application is not recognized. I have the Excell Visual Basic .NET |
10140
Problem With Comparison Operator <=> in G++ by: Oralloy |last post by: Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in... C / C++ |
1 9935 The easy way to turn off automatic updates for Windows 10/11 by: Hystou |last post by: Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,... Windows Server |
9819
Discussion: How does Zigbee compare with other wireless protocols in smart home applications? by: tracyyun |last post by: Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some... General |
8821
AI Job Threat for Devs by: agi2029 |last post by: Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea... Career Advice |
1 7364
Access Europe - Using VBA to create a class based on a table - Wed 1 May by: isladogs |last post by: The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will... Microsoft Access / VBA |
5268 Trying to create a lan-to-lan vpn between two differents networks by: TSSRALBI |last post by: Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls... Networking - Hardware / Configuration |
1 3916 transfer the data from one system to another through ip address by: 6302768590 |last post by: Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system C# / C Sharp |
3 3519
How to add payments to a PHP MySQL app. by: muto222 |last post by: How can i add a mobile payment intergratation into php mysql website. PHP |
3 2790
Comprehensive Guide to Website Development in Toronto: Expert Insights from BSMN Consultancy by: bsmnconsultancy |last post by: In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive... General |
By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.
To disable or enable advertisements and analytics tracking please visit the page.