From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YN1XH6wnxWM5agEAbAwnHQ (envelope-from ) for ; Mon, 16 Jan 2023 11:32:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iL19HqwnxWMYbAAAG6o9tA (envelope-from ) for ; Mon, 16 Jan 2023 11:32:12 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 36FE791DB for ; Mon, 16 Jan 2023 11:32:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHMlk-00043H-OC; Mon, 16 Jan 2023 05:31:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHMli-000434-NM for emacs-orgmode@gnu.org; Mon, 16 Jan 2023 05:31:10 -0500 Received: from smtp5-g21.free.fr ([212.27.42.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHMle-0006rR-Fp for emacs-orgmode@gnu.org; Mon, 16 Jan 2023 05:31:10 -0500 Received: from [IPV6:2a01:e35:39f3:4610:e660:fd03:8f28:8c5d] (unknown [IPv6:2a01:e35:39f3:4610:e660:fd03:8f28:8c5d]) (Authenticated sender: tbanelwebmin@free.fr) by smtp5-g21.free.fr (Postfix) with ESMTPSA id AD7006001F for ; Mon, 16 Jan 2023 11:31:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1673865061; bh=7ypCvmGPxqEgwSkVk9g25fhJkJFMRKbyoSkes4ejxRU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=rGL4G/HROID6jeQej/Kr2igVRwwc6IMZDAvR0dR7nzlfkzVf2XMtTWG+xsWrPdcw5 rh8tBpt4fjB5jnMp+Yb58t8rM5bFkGegJFe754rOfsMqfrNwRkwwZbkuzv8iCqMSPn KB4osPk80Z/2yxNvI9u2UDrspgWxoWl8ie+k9KAXutO6crNA7IAY+KTqDyU2DZ1ivI TsK9CWStpEB1u706+I01hm8uutgLAtrtWxylm7M1CdzvnKjom5cjClSxI70WbgIHmh G3o2ONXvKCK27XpoQwpoLD4YWRAbzbrkAMkk65gX2oS+NBFHADkbsCjzo6YmRqpu8f GhLFgGtsMvHBQ== Message-ID: <304d062e-c760-53ad-e442-ca646f2c892d@free.fr> Date: Mon, 16 Jan 2023 11:31:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: [ANN] orgtbl-fit Content-Language: fr, en-US To: emacs-orgmode@gnu.org References: <116c3126-32cc-44d0-9e95-e802161e1e84@app.fastmail.com> <87zgb90win.fsf@localhost> <87tu0qdc4k.fsf@localhost> From: tbanelwebmin In-Reply-To: <87tu0qdc4k.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.27.42.5; envelope-from=tbanelwebmin@free.fr; helo=smtp5-g21.free.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=free.fr header.s=smtp-20201208 header.b="rGL4G/HR"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=free.fr ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673865132; a=rsa-sha256; cv=none; b=r0Wm/P0fOJYhvaacJIzvip2WGEeyZjEatWQ/HXTIIwxM6OnDaPKv0TZepK2RnfufeLdiIf sCokZ+wcAGnqlDiichhSO7oJIkuyafEILKx8RSI9oiho+vaLmPiNZhYhTwXx0GrnHyc09m cGW1+V9HIH9tM4+Z0pZSN4jEwIaZ5+BVoStCCtFsV5fwKGvW8RiYBIROgXqAyu0FE5q0Un wqQUg8LujDr/7ATMJAyW1GQ2eoaEFYBCmbsINK4zBPdCbqm2Cp9qASVanWfwUgqxuDn5gk feoTcq2HrHNtVfL0l9lIyCzaDIxmCrJ1UZoNCya5Lyp1+d+4hYyZjWENHPER1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673865132; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SRR54uDNQsZY/r2zM2V+51l/TA3c9axUoky6PncE5sE=; b=HHmXaQ9P3dJpYAn4rLvChop3mjusMWUR3DW2DLIgePVn2hw2STeIoQooVGxbuQV1SExnTL Lkv6V03eVpM8F/WH4GC9pscHu3/aodW7HSGpcHMLrZTdULZbJtowuGq0yMS1YwlNHPJoGR tN6zk2bhsEQVetFUfK9+HCrW1c6m+vfEVON5T3bp/AXJ6ys8ofYXZUNjTYT+9B9/vl64ER g2RQDEgD2hxRNanRyOXoUmD9xjjdjh/mTjP8vA0HiQFRAPOhKBS27gBca1ZwPmpk0u4IGU v2/05cW5JnvG/Yq+hcTxQhWiAmrKymnZDM1JDXbp3QIPEpvAkxGITPeE8C7ZGA== X-Migadu-Queue-Id: 36FE791DB X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=free.fr header.s=smtp-20201208 header.b="rGL4G/HR"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=free.fr X-Migadu-Spam-Score: -7.82 X-Spam-Score: -7.82 X-TUID: GJd5LO/b2Ft5 Hi the List! The new orgtbl-fit package has just been released on Melpa. It does regression fitting on Org Mode tables. Example. We suspect that `obs' depends on `x' and `y'. |  x | y |  obs | |----+---+------| | 32 | 7 | 38.3 | | 18 | 3 | 11.4 | | 43 | 9 | 47.3 | | 11 | 2 |  8.9 | | 35 | 8 | 45.1 | Let us put the cursor on the `obs' column, and type M-x orgtbl-fit Two columns are added - predicted obs column - difference between obs and predicted |  x | y |  obs | Best Fit | Fit Diff | |----+---+------+----------+----------| | 32 | 7 | 38.3 |     38.2 |     -0.1 | | 18 | 3 | 11.4 |     11.6 |      0.2 | | 43 | 9 | 47.3 |     47.2 |     -0.1 | | 11 | 2 |  8.9 |      8.7 |     -0.2 | | 35 | 8 | 45.1 |     45.3 |      0.2 | #+TBLFM: $4=-0.289267886829 - 1.06613976706*$1 + 10.3668885192*$2; %.1f::$5=$4-$3; %.1f So we discovered that obs = -0.29 -1.07*x +10.37*y Behind the scene, the calcFunc-fit function from Emacs-Calc is called. Install through Melpa: M-x package-install orgtbl-fit Source and documentation here: https://github.com/tbanel/orgtblfit/blob/master/README.org Have fun Thierry